WebAssembly / function-references

Proposal for Typed Function References
https://webassembly.github.io/function-references/
Other
101 stars 15 forks source link

Test `return_call*`s to callees that return more values than the caller does #116

Closed fitzgen closed 6 months ago

fitzgen commented 6 months ago

While a call $f; return sequence where $f returns more values than its caller is valid so long as the tail of $f's returns match the caller's returns, however that situation is not valid for return_call $f. Tail callees must return the exact same number of results as the caller, not more. This case was not previously exercised in any of the spec tests.

Procedural note: I am adding all these tests to the function-references proposal to avoid needing to make multiple PRs to multiple repos because return_call_ref was not introduced until this proposal.

@rossberg PTAL