blob: ec7f07a4b37ad014f00d24f0594d2e7482d8b4c0 (
plain)
1
2
3
4
5
6
7
8
9
10
|
// Different objects get different Debugger.Object wrappers.
var g = newGlobal();
var dbg = Debugger(g);
var hits = 0;
dbg.onDebuggerStatement = function (frame) {
assertEq(frame.arguments[0] === frame.arguments[1], false);
hits++;
};
g.eval("function f(a, b) { debugger; } f({}, {});");
assertEq(hits, 1);
|