blob: d20972e1ced234b18254aa28631a2d44738e83f8 (
plain)
1
2
3
4
5
6
7
|
// Debugger mode can be disabled for a compartment even if it has scripts running.
var g = newGlobal({newCompartment: true});
var dbg = Debugger(g);
g.parent = this;
var n = 2;
g.eval("parent.dbg.removeDebuggee(this); parent.n += 2");
assertEq(n, 4);
|