Debian Codegraph @

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

raw
1 gczeal(0);
2 setMarkStackLimit(1);
3 loadFile(`
4 function wasmEvalText(str, imports) {
5 let binary = wasmTextToBinary(str);
6 m = new WebAssembly.Module(binary);
7 return new WebAssembly.Instance(m, imports);
8 }
9 let WasmFuncrefValues = [
10 wasmEvalText(\`(module (func (export "")))\`).exports[''],
11 ];
12 g1 = newGlobal({newCompartment: true});
13 gczeal(10,10);
14 `);
15 for (let i = 0; i < 1000; ++i)
16 loadFile("}");
17 function loadFile(lfVarx) {
18 try {
19 evaluate(lfVarx);
20 } catch (lfVare) {}
21 }