Bug 1369963 - Fix bug1355573.js jit-test to properly check for OOM. r=me
authorJan de Mooij <jdemooij@mozilla.com>
Mon, 05 Jun 2017 11:35:53 +0200
changeset 410437 0b104ac29e71e240d6f31dbb128dd500ecdfdede
parent 410436 efd4e852aca2966b88dd625ae31d7970bd4152b0
child 410438 2029bc93ed006007f6d5939801338f7003d4b8d7
child 410444 80abb5ca3b7364930ab3cf177dca8ffb4512dca6
push id7391
push usermtabara@mozilla.com
push dateMon, 12 Jun 2017 13:08:53 +0000
treeherdermozilla-beta@2191d7f87e2e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersme
bugs1369963, 1355573
milestone55.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1369963 - Fix bug1355573.js jit-test to properly check for OOM. r=me
js/src/jit-test/tests/basic/bug1355573.js
--- a/js/src/jit-test/tests/basic/bug1355573.js
+++ b/js/src/jit-test/tests/basic/bug1355573.js
@@ -1,12 +1,11 @@
-// |jit-test| allow-oom
 if (getBuildConfiguration().debug === true)
     quit(0);
 function f(){};
 Object.defineProperty(f, "name", {value: "a".repeat((1<<28)-1)});
 var ex = null;
 try {
     len = f.bind().name.length;
 } catch (e) {
     ex = e;
 }
-assertEq(ex instanceof InternalError, true);
+assertEq(ex === "out of memory" || (ex instanceof InternalError), true);