Skip to content

wasmparser: Fix arity for if's end with no else and br_table #2237

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

Merged
merged 2 commits into from
Jun 13, 2025

Conversation

fitzgen
Copy link
Member

@fitzgen fitzgen commented Jun 12, 2025

This also makes the push/pop tracking ignore "temporary" pushes and pops that only happen as an internal detail of an instruction's validation and are not exposed outside the instruction's encapsulation.

Fixes #2235

This will need a rebase now that #2236 merged.

@fitzgen fitzgen requested a review from a team as a code owner June 12, 2025 23:39
@fitzgen fitzgen requested review from abrown and removed request for a team June 12, 2025 23:39
This also makes the push/pop tracking ignore "temporary" pushes and pops that
only happen as an internal detail of an instruction's validation and are not
exposed outside the instruction's encapsulation.

Fixes bytecodealliance#2235
@fitzgen fitzgen force-pushed the arity-of-end-with-no-else branch from 5dd1c73 to 55f3399 Compare June 12, 2025 23:46
@fitzgen
Copy link
Member Author

fitzgen commented Jun 12, 2025

Rebased.

@fitzgen fitzgen enabled auto-merge June 13, 2025 15:31
@fitzgen fitzgen added this pull request to the merge queue Jun 13, 2025
Merged via the queue into bytecodealliance:main with commit a304440 Jun 13, 2025
32 checks passed
@fitzgen fitzgen deleted the arity-of-end-with-no-else branch June 13, 2025 15:45
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.

wasmparser reports incorrect arity for end instruction for if with no else?
2 participants