summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/wasm/multi-value/regress-1628499.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/jit-test/tests/wasm/multi-value/regress-1628499.js')
-rw-r--r--js/src/jit-test/tests/wasm/multi-value/regress-1628499.js11
1 files changed, 11 insertions, 0 deletions
diff --git a/js/src/jit-test/tests/wasm/multi-value/regress-1628499.js b/js/src/jit-test/tests/wasm/multi-value/regress-1628499.js
new file mode 100644
index 0000000000..e4360fcb9c
--- /dev/null
+++ b/js/src/jit-test/tests/wasm/multi-value/regress-1628499.js
@@ -0,0 +1,11 @@
+let instance = wasmEvalText(`
+ (func $twoRefs (result externref externref)
+ (ref.null extern)
+ (ref.null extern))
+ (func $fourRefs (export "run") (result externref externref externref externref externref externref)
+ call $twoRefs
+ call $twoRefs
+ call $twoRefs)
+`);
+
+assertDeepEq(instance.exports.run(), [null, null, null, null, null, null])