Debian Codegraph @

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

raw
1 // |jit-test| exitstatus: 3
2
3 var g = newGlobal();
4 var dbg = new Debugger(g);
5 dbg.onDebuggerStatement = function(frame) {
6 oomAfterAllocations(5);
7 // OOMs here, and possibly again in the error reporter when trying to
8 // report the OOM, so the shell just exits with code 3.
9 frame.older.eval("escaped = function() { return y }");
10 }
11 g.eval("function h() { debugger }");
12 g.eval("(function () { var y = {p:42}; h(); yield })().next();");