summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/debug/bug1246605.js
blob: cac1fa18693e804e65124149ebc260e2eb1c6767 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
g = newGlobal();
dbg = Debugger(g);
dbg.onNewScript = function(script) { fscript = script.getChildScripts()[0]; }
g.eval("function f() { arguments[0]; }");
var hitBreakpoint = false;
fscript.setBreakpoint(0, {
    hit: function() {
	getBacktrace({ args: 1 });
	hitBreakpoint = true;
    }
});
g.f("");
assertEq(hitBreakpoint, true);