summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/gc/finalizationRegistry-oom3.js
blob: d606ad8ba8a9d6322688f013658c30b661aba142 (plain)
1
2
3
4
5
// |jit-test| skip-if: !('oomTest' in this)
let registry = new FinalizationRegistry(x => 0);
registry.register({}, 1, {});
let token = {};
oomTest(() => registry.unregister(token));