Bug 1146696 - Fix testcase not to over-recurse r=me on a CLOSED TREE

This commit is contained in:
Jon Coppeard 2015-03-27 13:55:07 +00:00
parent 9a884f454c
commit 1fb886e76c

View File

@ -1,4 +1,3 @@
// |jit-test| error: out of memory
dbg1 = new Debugger();
root2 = newGlobal();
dbg1.memory.onGarbageCollection = function(){}
@ -9,10 +8,12 @@ for (var j = 0; j < 9999; ++j) {
} catch (e) {}
}
gcparam("maxBytes", gcparam("gcBytes") + 1);
g();
function g() {
function g(i) {
if (i == 0)
return;
var x = "";
function f() {}
eval('');
g();
g(i - 1);
}
g(8000);