summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/bug1877586.js
blob: 9d64f110af493049a52d7247ae4f54bacefbf130 (plain)
1
2
3
4
5
6
7
8
9
// |jit-test| allow-oom
try {
    for (let i = 0; i < 5; i++) {
        WebAssembly.instantiateStreaming(
            wasmTextToBinary('(module (func) (export "" (func 0)))')
        );
    }
} catch (e) {}
oomAtAllocation(7, 7);