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