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-switch-case.template
5 description: Existing variable binding is not modified (Function declaration in the `case` clause of a `switch` statement in eval code)
6 esid: sec-web-compat-evaldeclarationinstantiation
7 flags: [generated, noStrict]
9 B.3.3.3 Changes to EvalDeclarationInstantiation
12 a. If declaredFunctionOrVarNames does not contain F, then
17 'assert.sameValue(f(), "outer declaration");switch (1) {' +
19 ' function f() { return "inner declaration"; }' +
22 return "outer declaration";\