test262/test/annexB/language/eval-code/direct/global-block-decl-eval-glob...

21 lines
693 B
JavaScript
Raw Normal View History

2016-04-18 22:18:34 +02:00
// This file was procedurally generated from the following sources:
2017-03-28 02:49:48 +02:00
// - src/annex-b-fns/eval-global-existing-fn-no-init.case
2016-04-18 22:18:34 +02:00
// - src/annex-b-fns/eval-global/direct-block.template
/*---
description: Existing variable binding is not modified (Block statement in eval code containing a function declaration)
esid: sec-web-compat-evaldeclarationinstantiation
flags: [generated, noStrict]
info: |
2016-04-18 22:18:34 +02:00
B.3.3.3 Changes to EvalDeclarationInstantiation
2016-04-18 22:18:34 +02:00
[...]
a. If declaredFunctionOrVarNames does not contain F, then
[...]
---*/
eval(
'assert.sameValue(f(), "outer declaration");{ function f() { return "inner declaration"; } }function f() {\
return "outer declaration";\
}'
);