summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/gc/bug-1146696.js
blob: 02df0846735e7056b0f21994e38e49e5dcbf34c3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// |jit-test| --no-ggc; allow-oom; allow-unhandlable-oom
gc();
dbg1 = new Debugger();
root2 = newGlobal({newCompartment: true});
dbg1.memory.onGarbageCollection = function(){}
dbg1.addDebuggee(root2);
for (var j = 0; j < 9999; ++j) {
    try {
        a
    } catch (e) {}
}
gcparam("maxBytes", gcparam("gcBytes") + 8000);
function g(i) {
    if (i == 0)
        return;
    var x = "";
    function f() {}
    eval('');
    g(i - 1);
}
g(100);