summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/wasm/multi-value/regress-1628499.js
blob: e4360fcb9c026d17998eb03fe9047a43d753d486 (plain)
1
2
3
4
5
6
7
8
9
10
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])