Debian Codegraph @

js/src/tests/test262/annexB/language/function-code/block-decl-func-existing-block-fn-no-init.js

raw
1 // This file was procedurally generated from the following sources:
2 // - src/annex-b-fns/func-existing-block-fn-no-init.case
3 // - src/annex-b-fns/func/block.template
4 /*---
5 description: Does not re-initialize binding created by similar forms (Block statement in function scope containing a function declaration)
6 esid: sec-web-compat-functiondeclarationinstantiation
7 flags: [generated, noStrict]
8 info: |
9 B.3.3.1 Changes to FunctionDeclarationInstantiation
10
11 [...]
12 2. If instantiatedVarNames does not contain F, then
13 [...]
14 ---*/
15 var init;
16
17 (function() {
18 init = f;
19
20 {
21 function f() {}
22 }
23
24 {
25 function f() { }
26 }
27
28
29 }());
30
31 assert.sameValue(init, undefined);
32
33 reportCompare(0, 0);