blob: f488c25b3ec9f366cfc8c7783419bd7e47935aba (
plain)
1
2
3
4
5
6
7
8
9
10
|
// Different objects get different Debugger.Object wrappers.
var g = newGlobal({newCompartment: true});
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);
|