Bug 1909234 - Vendor libwebrtc from e0b28a6a81
[gecko.git] / js / src / tests / test262 / annexB / language / eval-code / direct / global-block-decl-eval-global-existing-block-fn-no-init.js
blobcd457a9b6b736bcf644527504045542b7c979ca9
1 // This file was procedurally generated from the following sources:
2 // - src/annex-b-fns/eval-global-existing-block-fn-no-init.case
3 // - src/annex-b-fns/eval-global/direct-block.template
4 /*---
5 description: Does not re-initialize binding created by similar forms (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
11     [...]
12     a. If declaredFunctionOrVarNames does not contain F, then
13     [...]
14 ---*/
16 eval(
17   'assert.sameValue(f, undefined);\
18   \
19   {\
20     function f() {}\
21   }{ function f() {  } }'
24 reportCompare(0, 0);