summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/gc/bug-1464872.js
blob: adf8c4f8c1d087a2c6cb5e453b601d8332b4266d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
gczeal(0);

var g = newGlobal({newCompartment: true});
var dbg = Debugger(g);
dbg.onEnterFrame = function(frame) {};

var g2 = newGlobal({newCompartment: true});
g2[g] = g;
g2.evaluate("grayRoot()")
g2 = undefined;

g = undefined;
dbg = undefined;

gc();
startgc(100000);