summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/gc/multi-01.js
blob: 18aa40aaea3c14c260f1fc9ebad47a530e1aa97f (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';");

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