blob: e837301ca86984bf60218037dd5247bcd38238b3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
// Bug 744731 - findScripts() finds active debugger frame.eval scripts.
var g = newGlobal();
var dbg = new Debugger;
var gw = dbg.addDebuggee(g);
var hits = 0;
dbg.onDebuggerStatement = function (frame) {
dbg.onDebuggerStatement = function (frame) {
hits++;
assertEq(dbg.findScripts().indexOf(dbg.getNewestFrame().script) !== -1, true);
};
frame.eval("debugger;");
};
g.eval("debugger;");
assertEq(hits, 1);
|