mirror of
https://github.com/tc39/test262.git
synced 2025-07-26 15:34:29 +02:00
This commit is contained in:
parent
bda89b6452
commit
1f6f66cb19
@ -27,13 +27,11 @@ path: "TestCases/chapter10/10.4/10.4.2/10.4.2-2-c-1.js",
|
|||||||
description: "Direct val code in non-strict mode - can instantiate variable in calling context",
|
description: "Direct val code in non-strict mode - can instantiate variable in calling context",
|
||||||
|
|
||||||
test: function testcase() {
|
test: function testcase() {
|
||||||
var x = 0;
|
var x = 0;
|
||||||
return function inner() {
|
return function inner() {
|
||||||
eval("var x = 1");
|
eval("var x = 1");
|
||||||
if (x === 1)
|
if (x === 1)
|
||||||
return true;
|
return true;
|
||||||
} ();
|
} ();
|
||||||
}
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user