summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/wasm/regress/bug-1833339.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/jit-test/tests/wasm/regress/bug-1833339.js')
-rw-r--r--js/src/jit-test/tests/wasm/regress/bug-1833339.js17
1 files changed, 17 insertions, 0 deletions
diff --git a/js/src/jit-test/tests/wasm/regress/bug-1833339.js b/js/src/jit-test/tests/wasm/regress/bug-1833339.js
new file mode 100644
index 0000000000..fb99428f88
--- /dev/null
+++ b/js/src/jit-test/tests/wasm/regress/bug-1833339.js
@@ -0,0 +1,17 @@
+let {a} = wasmEvalText(`(module
+ (tag (param ${'i32 '.repeat(10)}))
+
+ (func (result ${'i32 '.repeat(130)})
+ unreachable
+ )
+ (func (export "a")
+ call 0
+ try
+ catch 0
+ unreachable
+ end
+ unreachable
+ )
+)
+`).exports;
+assertErrorMessage(a, WebAssembly.RuntimeError, /unreachable/);