summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/gc/bug-1820543.js
blob: 0ef5f9915e00ae4372f28c193f3afb102d78445f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
gczeal(0);

const v1 = ("DEB1").startsWith("DEB1");
function f2(a3, a4, a5, a6) {
    return ({"constructor":this,"b":a3,"__proto__":this}).newGlobal(f2);
}
f2.newCompartment = v1;
with (f2()) {
    function f11(a12, a13) {
        return "DEB1";
    }
    const v15 = new FinalizationRegistry(f11);
    v15.register(f2);
}
this.reportLargeAllocationFailure();
gc()