diff options
Diffstat (limited to 'js/src/jit-test/tests/wasm/regress/oom-eval.js')
-rw-r--r-- | js/src/jit-test/tests/wasm/regress/oom-eval.js | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/js/src/jit-test/tests/wasm/regress/oom-eval.js b/js/src/jit-test/tests/wasm/regress/oom-eval.js new file mode 100644 index 000000000..738a21857 --- /dev/null +++ b/js/src/jit-test/tests/wasm/regress/oom-eval.js @@ -0,0 +1,12 @@ +// |jit-test| slow; allow-oom + +if (typeof oomTest !== 'function' || !wasmIsSupported()) { + print('Missing oomTest or wasm support in wasm/regress/oom-eval'); + quit(); +} + +function foo() { + var g = newGlobal(); + g.eval(`o = new WebAssembly.Instance(new WebAssemby.Module(wasmTextToBinary('(module (func) (export "" 0))')));`); +} +oomTest(foo); |