Back out c2a6dee2071f, fails-if condition runs in an environment that's not the same as the test itself (which requires let statements be enabled). r=bustage in a CLOSED TREE

This commit is contained in:
Jeff Walden 2014-06-13 16:06:54 -07:00
parent d6941f9fce
commit 5573a8f3a1
3 changed files with 0 additions and 20 deletions

View File

@ -1,2 +0,0 @@
if (typeof version !== 'undefined')
version(185);

View File

@ -1,18 +0,0 @@
// |reftest| fails-if((1,eval)("let\x20x=3;'x'\x20in\x20this")) -- needs bug 589199 fix (top-level let not same as var)
// Any copyright is dedicated to the Public Domain.
// http://creativecommons.org/licenses/publicdomain/
let v = "global-v";
function f(v, global)
{
with (global)
return v;
}
assertEq(f("argument-v", this), "argument-v");
if (typeof reportCompare === "function")
reportCompare(true, true);
print("Tests complete");