Debian Codegraph @

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

raw
1 // Create function clones in a separate Zone so that the GC can relazify them.
2 let g = newGlobal({newCompartment: true});
3 g.evaluate(`
4 function factory() {
5 return function() { };
6 }
7 `);
8
9 // Delazify, Relazify, Delazify
10 g.factory()();
11 finishgc();
12 startgc(0, 'shrinking');
13 g.factory()();