1 2 3 4 5 6 7 8
var g = newGlobal(); var k = g.eval('var u = new Object(); u'); var m = new WeakMap(); m.set(k, {}); k = null; gc(); k = g.eval('u'); assertEq(m.has(k), true);