summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/modules/bug-1888902.js
blob: 7804bef98aa493978d8085528ef162458b9bed1e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// |jit-test| error:Error

const v0 = `
    function F1() {
        const v11 = registerModule("module1", parseModule(\`import {} from "module2";
                                                            import {} from "module3";\`));
        const v13 = "await 1;";
        drainJobQueue();
        registerModule("module2", parseModule(v13));
        registerModule("module3", parseModule(v0));
        moduleLink(v11);
        moduleEvaluate(v11);
    }
    F1();
`;
eval(v0);