blob: 5bf873ee5fc24cbec718bb46e2c0a282b38f1e28 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
g = newGlobal({newCompartment: true});
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);
|