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