Fix two tests that were failing in the shell for no good reason. (This will not affect how the tests work in the browser either way; one is skipped in the browser and the other is expected to fail in the browser.) no_r=me.
authorJason Orendorff <jorendorff@mozilla.com>
Tue, 30 Nov 2010 09:34:21 -0600
changeset 58685 aaf7a1efa84832a0fd14dd9811772bc452cf1833
parent 58684 3ba055c38b39d9bd3a5eda6adbd2fda737bbd703
child 58686 5dc38da16e79228da788e36e1bfb7f49f44f65bd
push id1
push usershaver@mozilla.com
push dateTue, 04 Jan 2011 17:58:04 +0000
milestone2.0b8pre
Fix two tests that were failing in the shell for no good reason. (This will not affect how the tests work in the browser either way; one is skipped in the browser and the other is expected to fail in the browser.) no_r=me.
js/src/tests/js1_5/extensions/regress-336410-1.js
js/src/tests/js1_8_5/regress/regress-595230-1.js
--- a/js/src/tests/js1_5/extensions/regress-336410-1.js
+++ b/js/src/tests/js1_5/extensions/regress-336410-1.js
@@ -68,14 +68,14 @@ try
   printStatus('Creating array');
   var o=[r, r, r, r, r, r, r, r, r];
   printStatus('object.toSource()');
   var rr = o.toSource();
   printStatus('Done.');
 }
 catch(ex)
 {
-  expect = 'InternalError: script stack space quota is exhausted';
+  expect = 'InternalError: allocation size overflow';
   actual = ex + '';
   print(actual);
 }
 
 reportCompare(expect, actual, summary);
--- a/js/src/tests/js1_8_5/regress/regress-595230-1.js
+++ b/js/src/tests/js1_8_5/regress/regress-595230-1.js
@@ -6,13 +6,14 @@ var box = evalcx('lazy');
 
 var src =
     'try {\n' +
     '    __proto__ = Proxy.createFunction((function() {}), function() {})\n' +
     '    var x\n' +
     '    *\n' +
     '} catch(e) {}\n' +
     'default xml namespace = x\n' +
-    'for (let b in [0, 0]) <x/>\n';
+    'for (let b in [0, 0]) <x/>\n' +
+    '0\n';
 
 evalcx(src, box);
 
 this.reportCompare(0, 0, "ok");