Debian Codegraph @

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

raw
1 // |jit-test| allow-oom
2
3 function x() {
4 var global = newGlobal({sameZoneAs: this});
5 global.eval('function f() { debugger; }');
6 var debug = new Debugger(global);
7 var foo;
8 debug.onDebuggerStatement = function(frame) {
9 foo = frame.arguments[0];
10 return null;
11 };
12 global.eval('f(0)');
13 }
14
15 oomTest(x, false);