Bug 1820543 - Add test r=sfink
[gecko.git] / js / src / jit-test / tests / gc / bug-1820543.js
blob0ef5f9915e00ae4372f28c193f3afb102d78445f
1 gczeal(0);
3 const v1 = ("DEB1").startsWith("DEB1");
4 function f2(a3, a4, a5, a6) {
5     return ({"constructor":this,"b":a3,"__proto__":this}).newGlobal(f2);
7 f2.newCompartment = v1;
8 with (f2()) {
9     function f11(a12, a13) {
10         return "DEB1";
11     }
12     const v15 = new FinalizationRegistry(f11);
13     v15.register(f2);
15 this.reportLargeAllocationFailure();
16 gc()