summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/debug/gc-06.js
blob: 16aaf12bd0664584f95a8260045341b7fb030d99 (plain)
1
2
3
4
5
6
// Debugger objects do not keep debuggee globals live.
var dbg = new Debugger;
for (var i = 0; i < 10; i++)
    dbg.addDebuggee(newGlobal({newCompartment: true}));
gc();
assertEq(dbg.getDebuggees().length < 10, true);