summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/modules/bug-1443555.js
blob: b67002d52dd622d576d2d9fe04f9186b66663ad8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
// |jit-test| error: TypeError

"use strict";

setJitCompilerOption("baseline.warmup.trigger", 0);

let mainSrc = `
import A from "A";

const a = A;

function requestAnimationFrame(f) { Promise.resolve().then(f); };

requestAnimationFrame(loopy);
a = 2;
function loopy() {
    A;
}
`;

let ASrc = `
export default 1;
`;

registerModule('A', parseModule(ASrc));

let m = parseModule(mainSrc);
moduleLink(m)
moduleEvaluate(m);