diff options
Diffstat (limited to '')
-rw-r--r-- | js/src/jit-test/tests/wasm/oom/exports.js | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/js/src/jit-test/tests/wasm/oom/exports.js b/js/src/jit-test/tests/wasm/oom/exports.js new file mode 100644 index 0000000000..391850fda7 --- /dev/null +++ b/js/src/jit-test/tests/wasm/oom/exports.js @@ -0,0 +1,11 @@ +// |jit-test| skip-if: !('oomTest' in this) + +oomTest(() => { + let text = `(module + (type (func (param i32) (result i32))) + )`; + let binary = wasmTextToBinary(text); + let module = new WebAssembly.Module(binary); + let obj = module.exports(); + assertEq(obj instanceof Object, true); +}); |