summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/gc/multi-01.js
blob: 90a3ae41904726d34c6d11cf92bf87f5928fdbf8 (plain)
1
2
3
4
5
6
7
8
9
/* Make sure we don't collect the atoms compartment unless every compartment is marked. */

var g = newGlobal();
g.eval("var x = 'some-atom';");

schedulegc(this);
schedulegc('atoms');
gc('zone');
print(g.x);