Bug 794700 - Remove a test exercising dead code; r=billm
authorTerrence Cole <terrence@mozilla.com>
Wed, 26 Sep 2012 18:04:35 -0700
changeset 108336 ddf584176a04d21fa0d237827b98ed3a5e59da2a
parent 108335 54fcc112182404252bad67d114231e6b815af823
child 108337 7faf6b82017faa0423237cbe1ccacc958ce29b4e
push id82
push usershu@rfrn.org
push dateFri, 05 Oct 2012 13:20:22 +0000
reviewersbillm
bugs794700
milestone18.0a1
Bug 794700 - Remove a test exercising dead code; r=billm
js/src/tests/js1_8_5/regress/regress-610026.js
--- a/js/src/tests/js1_8_5/regress/regress-610026.js
+++ b/js/src/tests/js1_8_5/regress/regress-610026.js
@@ -41,25 +41,9 @@ try {
     eval(s);
     actual = "fail: expected InternalError: program too large";
 } catch (e) {
     actual = (e.message == "program too large") ? "pass" : "fail: " + e;
 }
 
 assertEq(actual, expect);
 
-/* Make 64K blocks in a row, each with two vars, the second one named x. */
-s = "{let y, x;}";
-for (i = 0; i < 16; i++)
-    s += s;
-
-/* Now append code to alias block 0 and botch a JS_NOT_REACHED or get the wrong x. */
-s += "var g; { let x = 42; g = function() { return x; }; x = x; }";
-
-try {
-    eval(s);
-    actual = g();
-} catch (e) {
-    actual = e;
-}
-assertEq(actual, 42);
-
 reportCompare(0, 0, "ok");