blob: b3efde2a3d3d3fbbd6d6859c15580dac99a38ce2 [file] [log] [blame]
// 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);