blob: a73032f938af65d4b55b0784344e87e6a0ceffec (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
var g = newGlobal();
var dbg = new Debugger(g);
var hits = 0;
dbg.onDebuggerStatement = function (frame) {
var arr = frame.arguments;
assertEq(arr[0].script instanceof Debugger.Script, true);
assertEq(arr[1].script, undefined);
assertEq(arr[2].script, undefined);
hits++;
};
g.eval("(function () { debugger; })(function g(){}, {}, Math.atan2);");
assertEq(hits, 1);
|