blob: d6ff5b1ae39bfe3defe7c3971014c73e1b89a715 (
plain)
1
2
3
4
5
6
7
8
9
|
// |jit-test| skip-if: !('oomAtAllocation' in this); allow-oom
try {
for (let i = 0; i < 5; i++) {
WebAssembly.instantiateStreaming(
wasmTextToBinary('(module (func) (export "" (func 0)))')
);
}
} catch (e) {}
oomAtAllocation(7, 7);
|