mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
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:
parent
d6941f9fce
commit
5573a8f3a1
@ -1,2 +0,0 @@
|
||||
if (typeof version !== 'undefined')
|
||||
version(185);
|
@ -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");
|
Loading…
Reference in New Issue
Block a user