Debian Codegraph @

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

raw
1 // |jit-test| allow-oom
2
3 // We need allow-oom here because the debugger reports an uncaught exception if
4 // it hits OOM calling the exception unwind hook. This causes the shell to exit
5 // with the OOM reason.
6
7 var g = newGlobal({newCompartment: true});
8 g.parent = this;
9 g.eval("new Debugger(parent).onExceptionUnwind = function() {}");
10 let finished = false;
11 oomTest(() => l, false);