Bug 1245862 - Guard oomAfterAllocations existing in shells on a CLOSED TREE. (r=me)
authorShu-yu Guo <shu@rfrn.org>
Fri, 05 Feb 2016 16:00:12 -0800
changeset 283243 1a7d89d6f69c87379671b8931ccf0c99e58eb912
parent 283242 9535c05d50222833dd85624148b4d4db563ceca3
child 283244 e4dfe029dd33242203bd9bac3d7fefcc31ece890
push id71483
push usershu@rfrn.org
push dateSat, 06 Feb 2016 00:00:15 +0000
treeherdermozilla-inbound@1a7d89d6f69c [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersme
bugs1245862
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 1245862 - Guard oomAfterAllocations existing in shells on a CLOSED TREE. (r=me)
js/src/jit-test/tests/debug/bug1245862.js
--- a/js/src/jit-test/tests/debug/bug1245862.js
+++ b/js/src/jit-test/tests/debug/bug1245862.js
@@ -1,10 +1,13 @@
 // |jit-test| allow-oom
 
+if (!('oomAfterAllocations' in this))
+  quit();
+
 var g = newGlobal();
 var dbg = new Debugger;
 g.h = function h(d) {
   if (d) {
     dbg.addDebuggee(g);
     var f = dbg.getNewestFrame().older;
     f.st_p1((oomAfterAllocations(10)) + "foo = 'string of 42'");
   }