| 1 |
// This file was procedurally generated from the following sources: |
| 2 |
// - src/annex-b-fns/eval-global-existing-var-no-init.case |
| 3 |
// - src/annex-b-fns/eval-global/indirect-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 |
es6id: B.3.3.3 |
| 8 |
flags: [generated, noStrict] |
| 9 |
info: | |
| 10 |
B.3.3.3 Changes to EvalDeclarationInstantiation |
| 11 |
|
| 12 |
[...] |
| 13 |
a. If declaredFunctionOrVarNames does not contain F, then |
| 14 |
[...] |
| 15 |
---*/ |
| 16 |
|
| 17 |
(0,eval)( |
| 18 |
'var f = 123;\ |
| 19 |
assert.sameValue(f, 123);{ function f() { } }' |
| 20 |
); |