blob: 3c1fc569372adefaabab26a334ac8b18c72474d2 (
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({newCompartment: true});
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);
|