summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/gc/bug-1282986.js
blob: 5c2c3ab67ce7bc8c6be396b7956b91444ef5f889 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
if (!('oomTest' in this))
    quit();

var lfLogBuffer = `
evalInWorker(\`
        try { oomAfterAllocations(2); } catch(e) {}
    \`);
`;
loadFile("");
loadFile(lfLogBuffer);
function loadFile(lfVarx) {
    oomTest(function() {
        let m = parseModule(lfVarx);
        m.declarationInstantiation();
        m.evaluation();
    });
}