summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/debug/gc-07.js
blob: d2de5eab4773b27dcde371e63c8c131c81e4f86f (plain)
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();
}