Debian Codegraph @

js/src/jit-test/tests/debug/bug1240803.js

raw
1 // |jit-test| allow-oom; skip-if: !hasFunction.oomAfterAllocations
2
3 (function() {
4 g = newGlobal({newCompartment: true})
5 dbg = new Debugger
6 g.toggle = function(d) {
7 if (d) {
8 dbg.addDebuggee(g);
9 dbg.getNewestFrame();
10 oomAfterAllocations(2);
11 setBreakpoint;
12 }
13 }
14 g.eval("" + function f(d) { return toggle(d); })
15 g.eval("(" + function() {
16 f(false);
17 f(true);
18 } + ")()")
19 })();
20