This repository was archived by the owner on Nov 3, 2021. It is now read-only.
This repository was archived by the owner on Nov 3, 2021. It is now read-only.
Invalid JavaScript tests for multi-value functions #44
Closed
Description
At the WebAssembly/JavaScript boundary, multi-values are converted to JS Arrays according to the spec text. This is not taken into account in the generated JS tests, where assert_return
still expects exactly two scalar arguments. See test/core/_output/if.js:167
for example:
assert_return(() => call($1, "multi", [0]), 9, -1)
The JS Array [9, -1]
is the expected result of the WebAssembly function, but assert_return
will discard its third argument and compare the array with 9
.
Metadata
Metadata
Assignees
Labels
No labels