blob: 934cea5b61eed8b2cb95e401f26e1d0baf639ef4 (
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);
moduleLink(m);
moduleEvaluate(m);
});
}
|