mirror of https://github.com/tc39/test262.git
28 lines
711 B
JavaScript
28 lines
711 B
JavaScript
// This file was procedurally generated from the following sources:
|
|
// - src/annex-b-fns/eval-func-existing-block-fn-no-init.case
|
|
// - src/annex-b-fns/eval-func/direct-block.template
|
|
/*---
|
|
description: Does not re-initialize binding created by similar forms (Block statement in eval code containing a function declaration)
|
|
esid: sec-web-compat-evaldeclarationinstantiation
|
|
flags: [generated, noStrict]
|
|
info: |
|
|
B.3.3.3 Changes to EvalDeclarationInstantiation
|
|
|
|
[...]
|
|
a. If declaredFunctionOrVarNames does not contain F, then
|
|
[...]
|
|
---*/
|
|
var init;
|
|
|
|
(function() {
|
|
eval(
|
|
'init = f;\
|
|
\
|
|
{\
|
|
function f() {}\
|
|
}{ function f() { } }'
|
|
);
|
|
}());
|
|
|
|
assert.sameValue(init, undefined);
|