summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/debug/gc-06.js
blob: 69da384e4037269302052a5357fabc0189eb8798 (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());
gc();
assertEq(dbg.getDebuggees().length < 10, true);