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

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