blob: ed24db8f0f81d7d27233079c5cda9321c7be1da0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
// |jit-test| --no-ion; --no-baseline; --no-blinterp; skip-if: !('oomAtAllocation' in this)
// This shouldn't assert (bug 1516514).
//
// Disabled for ion and baseline because those introduce OOMs at some point that
// we don't seem to be able to catch, and they're not relevant to the bug.
let g = newGlobal();
function oomTest() {
let done = false;
for (let j = 1; !done; j++) {
saveStack();
oomAtAllocation(j);
try {
g.saveStack();
} catch {}
done = !resetOOMFailure();
try {
g.saveStack();
} catch {}
}
}
oomTest();
|