diff options
Diffstat (limited to 'js/src/jit-test/tests/basic/bug1877586.js')
-rw-r--r-- | js/src/jit-test/tests/basic/bug1877586.js | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/js/src/jit-test/tests/basic/bug1877586.js b/js/src/jit-test/tests/basic/bug1877586.js new file mode 100644 index 0000000000..d6ff5b1ae3 --- /dev/null +++ b/js/src/jit-test/tests/basic/bug1877586.js @@ -0,0 +1,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); |