summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/gc/bug-1146696.js
blob: 070a8512c2024e8041b628da0c74f32093d02298 (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
gc();
dbg1 = new Debugger();
root2 = newGlobal();
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);