summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/gc/finalizationRegistry-oom1.js
blob: 753448a650ce75ef4261fb8072dc9f5fd9d45a11 (plain)
1
2
3
4
5
6
7
8
// |jit-test| skip-if: !('oomTest' in this)

// Don't test prototype initialization etc.
new FinalizationRegistry(x => 0);

oomTest(() => {
    new FinalizationRegistry(x => 0);
});