Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove failure case with ambiguous error options #1729

Merged
merged 1 commit into from
Feb 17, 2024

Conversation

rvagg
Copy link
Contributor

@rvagg rvagg commented Feb 17, 2024

This failure case could be equally valid as "type mismatch" if a validator is validating one opcode at a time rather than consuming them all then validating the return type.

It wants a ref.func but the first opcode it finds is an i32.const so a streaming validator should be able to error on the first opcode rather than wait for more to decide that it's not a constant expression.

I can't think of an alternative to replace this with, so I'm suggesting this case is unnecessary and too ambiguous.

This failure case could be equally valid as "type mismatch" if a validator is
validating one opcode at a time rather than consuming them all then validating
the return type.
Copy link
Member

@rossberg rossberg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fair enough.

@rossberg rossberg merged commit 360141b into WebAssembly:main Feb 17, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants