Debian Codegraph @

js/src/jit-test/tests/gc/bug-1825936.js

raw
1 let src = `
2 function f0() {
3 return f0;
4 }
5 const v10 = f0.bind();
6 v10.sameZoneAs = f0;
7 const v37 = this.newGlobal(v10);
8
9 try {
10 v37.moduleEvaluate();
11 } catch(e48) {
12 this.grayRoot();
13 const v59 = new FinalizationRegistry(FinalizationRegistry);
14 v59.register(e48, v59, e48);
15 v59.register(f0, v59, e48);
16 }
17 this.nukeAllCCWs();
18 `;
19
20 gczeal(0);
21 let global = newGlobal();
22 global.eval(src);
23 global = undefined;
24 gc();