mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-07 12:15:51 +00:00
Bug 1146696 - Fix testcase not to over-recurse r=me on a CLOSED TREE
This commit is contained in:
parent
9a884f454c
commit
1fb886e76c
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user