1 2 3 4 5 6 7 8 9
// Don't assert with dead Debugger.Object and live cross-compartment wrapper of referent. var g = newGlobal(); for (var j = 0; j < 4; j++) { var dbg = new Debugger; dbg.addDebuggee(g); dbg.enabled = false; dbg = null; gc(); gc(); }