Debian Codegraph @

js/src/jit-test/tests/modules/bug1912489.js

raw
1 // |jit-test| allow-overrecursed
2
3 const arr = [1,2,3,4,5,6,7,8];
4
5 function f() {
6 let import_str = 'import {} from "module2"; import {} from "module3";';
7 let await_str = "await 1;"
8 const mod = registerModule("module1", parseModule(import_str));
9 registerModule("module2", parseModule(await_str));
10 registerModule("module3", parseModule(import_str + await_str));
11 moduleLink(mod);
12 moduleEvaluate(mod);
13 function recurse(a, b) {
14 try {
15 a(a);
16 } catch {
17 drainJobQueue();
18 }
19 }
20 const wrapper = wrapWithProto(recurse, {});
21 recurse(wrapper);
22 }
23 arr.sort(f)