blob: 81dcedcdebedb2c0857400587cdbeab8cd4d5aed [file] [log] [blame]
for (var i = 0; i < 1000; i++)
shouldThrowTDZ(foo);
let lexicalVariableNotYetDefined = 100;
assert(foo() === lexicalVariableNotYetDefined);
for (var i = 0; i < 1000; i++)
shouldThrowTDZ(bar);
let lexicalVariableNotYetDefinedSecond = 200;
assert(bar() === 300);