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

Fix validation of catch/catch_all with try params #710

Merged
merged 1 commit into from
Aug 12, 2022

Conversation

alexcrichton
Copy link
Member

This commit fixes an accidental regression from #697 in the refactoring
I added at the end where manual modification of self.control was
replaced with self.push_ctrl. For the exceptions proposal specifically
this is not valid since the block_type for the frame doesn't get the
parameters pushed when the catch and catch_all instructions are
encountered.

This commit fixes an accidental regression from bytecodealliance#697 in the refactoring
I added at the end where manual modification of `self.control` was
replaced with `self.push_ctrl`. For the exceptions proposal specifically
this is not valid since the `block_type` for the frame doesn't get the
parameters pushed when the `catch` and `catch_all` instructions are
encountered.
@fitzgen fitzgen merged commit 3633da4 into bytecodealliance:main Aug 12, 2022
@alexcrichton alexcrichton deleted the fix-try-catch branch August 16, 2022 20:58
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