global-block-decl-eval-global-existing-fn-no-init.js (715B)
1 // This file was procedurally generated from the following sources: 2 // - src/annex-b-fns/eval-global-existing-fn-no-init.case 3 // - src/annex-b-fns/eval-global/direct-block.template 4 /*--- 5 description: Existing variable binding is not modified (Block statement in eval code containing a function declaration) 6 esid: sec-web-compat-evaldeclarationinstantiation 7 flags: [generated, noStrict] 8 info: | 9 B.3.3.3 Changes to EvalDeclarationInstantiation 10 11 [...] 12 a. If declaredFunctionOrVarNames does not contain F, then 13 [...] 14 ---*/ 15 16 eval( 17 'assert.sameValue(f(), "outer declaration");{ function f() { return "inner declaration"; } }function f() {\ 18 return "outer declaration";\ 19 }' 20 ); 21 22 reportCompare(0, 0);