summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/debug/bug-1260728.js
blob: fbccb448e72422d2152552ad8f2da4e9fb246798 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// |jit-test| error:Error

var g = newGlobal();
var dbg = new Debugger(g);
dbg.onNewScript = function(script) {
  fscript = script.getChildScripts()[0];
}
g.eval("function f(x) { arguments[0] = 3; return x }");
fscript.setBreakpoint(0, {hit:function(frame) {
  assertEq(frame.eval("assertEq(arguments, undefined)").return, 1);
}});
assertEq(g.f(1), 42);