summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/gc/bug-1890670.js
blob: e73c5a99e6e13de93c3a1d3bd6bd39dddefba732 (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")

gczeal(0);
let wm = new WeakMap();
let s = Symbol();
wm.set(s, new WeakMap());
let ss = Symbol();
wm.get(s).set(this, ss);
let wm2 = new WeakMap();
wm2.set(ss, "test");
ss = null;
gc();