summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/modules/bug-1402649.js
blob: cae48d355897991e2941aacc4e576f01dcfbb1c3 (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);
    m.declarationInstantiation();
}
parseAndEvaluate("async function a() { await 2 + 3; }")
`);
function loadFile(lfVarx) {
    oomTest(function() {
        eval(lfVarx);
    });
}