summaryrefslogtreecommitdiffstats
path: root/js/src/tests/non262/regress/regress-1507322-deep-weakmap.js
blob: 049dc2a8dbf985a60763f9e3e8164e6cd2214fc8 (plain)
1
2
3
4
5
6
7
8
9
10
11
function TestGC2(m) {
  var head = new Object;
  for (key = head, i = 0; i < 99999; i++, key = m.get(key)) {
    m.set(key, new Object);
  }
  gc();
  for (key = head; key != undefined; key = m.get(key)) {}
}
TestGC2(new WeakMap);

reportCompare(true, true, "deep weakmaps");