Bug 1240521 - Fix the test case to ensure that oomAfterAllocation is defined. r=red
authorNicolas B. Pierron <nicolas.b.pierron@mozilla.com>
Tue, 08 Mar 2016 14:22:47 +0000
changeset 287198 005625bc9f4463e5bb41416056558991a90cf91a
parent 287197 d506fc68f5caa17320efb23f87e0ca3c0457c734
child 287199 4c048ada6176e69f4937925dcabaaae43aed7967
push id73105
push usernpierron@mozilla.com
push dateTue, 08 Mar 2016 14:22:59 +0000
treeherdermozilla-inbound@005625bc9f44 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersred
bugs1240521
milestone47.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 1240521 - Fix the test case to ensure that oomAfterAllocation is defined. r=red
js/src/jit-test/tests/ion/bug1240521.js
--- a/js/src/jit-test/tests/ion/bug1240521.js
+++ b/js/src/jit-test/tests/ion/bug1240521.js
@@ -1,9 +1,13 @@
 // |jit-test| allow-oom
+
+if (!('oomAfterAllocations' in this))
+    quit();
+
 var egc = 138;
 function SwitchTest(value) {
     switch (value) {
         case 0:
             break
         case new Number:
             result = 8
         case oomAfterAllocations(egc):