summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/modules/bug-1402649.js
blob: 559a91a98fff0540130e31b6ab794d0d9f90a70a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// |jit-test| skip-if: !('oomTest' in this)

loadFile(`
function parseAndEvaluate(source) {
    let m = parseModule(source);
    moduleLink(m);
}
parseAndEvaluate("async function a() { await 2 + 3; }")
`);
function loadFile(lfVarx) {
    oomTest(function() {
        eval(lfVarx);
    });
}