Bug 1240521 - Fix the test case to ensure that oomAfterAllocation is defined. r=red, a=test-only
authorNicolas B. Pierron <nicolas.b.pierron@mozilla.com>
Tue, 08 Mar 2016 14:22:47 +0000
changeset 323444 f8832c89993847cba506099d7651ec285724ae27
parent 323443 795e561af9a4d8a849dd130f2a201df9270e6ee0
child 323445 13f341508044f00305af9ea113f66435e434884a
push id5913
push userjlund@mozilla.com
push dateMon, 25 Apr 2016 16:57:49 +0000
treeherdermozilla-beta@dcaf0a6fa115 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersred, test-only
bugs1240521
milestone47.0a2
Bug 1240521 - Fix the test case to ensure that oomAfterAllocation is defined. r=red, a=test-only
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):