Bug 1791975 - Add test r=jandem

Depends on D158022

Differential Revision: https://phabricator.services.mozilla.com/D159025
This commit is contained in:
Jon Coppeard 2023-01-19 18:24:41 +00:00
parent ccd11e95a6
commit ee2bd0d3e2

View File

@ -0,0 +1,13 @@
// |jit-test| skip-if: !('oomAtAllocation' in this)
gczeal(10, 10);
try {
throw 0;
} catch {
for (let i = 1; i < 20 ; i++) {
oomAtAllocation(i);
try {
newGlobal();
} catch {}
}
}