Debian Codegraph @

js/src/jit-test/tests/gc/bug-1146696.js

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