diff --git a/js/src/tests/js1_8_5/regress/jstests.list b/js/src/tests/js1_8_5/regress/jstests.list index 0d6357151e21..308a64956658 100644 --- a/js/src/tests/js1_8_5/regress/jstests.list +++ b/js/src/tests/js1_8_5/regress/jstests.list @@ -12,7 +12,7 @@ script regress-551763-0.js script regress-551763-1.js script regress-551763-2.js script regress-555246-0.js -fails script regress-555246-1.js +script regress-555246-1.js script regress-559438.js script regress-560101.js script regress-560998-1.js diff --git a/js/src/tests/js1_8_5/regress/regress-555246-0.js b/js/src/tests/js1_8_5/regress/regress-555246-0.js index a79ac62045ca..2a4efe0522ea 100644 --- a/js/src/tests/js1_8_5/regress/regress-555246-0.js +++ b/js/src/tests/js1_8_5/regress/regress-555246-0.js @@ -5,10 +5,10 @@ */ if (typeof evalcx == 'function') { - var cx = evalcx(""); - evalcx("function f() { return this; }", cx); - var f = cx.f; - assertEq(f(), cx); + var cx = evalcx(""); + evalcx("function f() { return this; }", cx); + var f = cx.f; + assertEq(f(), cx); } reportCompare(0, 0, ""); diff --git a/js/src/tests/js1_8_5/regress/regress-555246-1.js b/js/src/tests/js1_8_5/regress/regress-555246-1.js index af3f3e1205c0..cc3990ae68a2 100644 --- a/js/src/tests/js1_8_5/regress/regress-555246-1.js +++ b/js/src/tests/js1_8_5/regress/regress-555246-1.js @@ -4,9 +4,11 @@ * Contributor: Jason Orendorff */ -assertEq(typeof evalcx, "function", "") -var cx = evalcx(""); -evalcx("function f() { return this; }", cx); -f = cx.f; -assertEq(f(), cx); +if (typeof evalcx == 'function') { + var cx = evalcx(""); + evalcx("function f() { return this; }", cx); + f = cx.f; + assertEq(f(), cx); +} + reportCompare(0, 0, "");