Debian Codegraph @

js/src/jit-test/tests/debug/bug-1260728.js

raw
1 // |jit-test| error:Error
2
3 var g = newGlobal();
4 var dbg = new Debugger(g);
5 dbg.onNewScript = function(script) {
6 fscript = script.getChildScripts()[0];
7 }
8 g.eval("function f(x) { arguments[0] = 3; return x }");
9 fscript.setBreakpoint(0, {hit:function(frame) {
10 assertEq(frame.eval("assertEq(arguments, undefined)").return, 1);
11 }});
12 assertEq(g.f(1), 42);