summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/collections/bug-1885775.js
blob: bc14c6d58b1d635385a93a0a0213fb9f87fa089f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// |jit-test| --enable-symbols-as-weakmap-keys; skip-if: getBuildConfiguration("release_or_beta")
var code = `
var m58 = new WeakMap;
var sym = Symbol();
m58.set(sym, ({ entry16: 0, length: 1 }));
function testCompacting() {
  gcslice(50000);
}
testCompacting(2, 100000, 50000);
`;
for (x = 0; x < 10000; ++x)
  evaluate(code);