-
Notifications
You must be signed in to change notification settings - Fork 825
Handle return calls in CodeFolding #6474
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
Conversation
This stack of pull requests is managed by Graphite. Learn more about stacking. |
702e897 to
e608ce4
Compare
|
cc @vouillon |
873166b to
a72c996
Compare
b4affd2 to
5ff3513
Compare
a72c996 to
e422e13
Compare
kripken
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm % test questions
| ) | ||
| (unreachable) | ||
| ) | ||
| ) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
did we not have a test for this before?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, not that I was able to find for either of these tests. Except for the throws effect analysis, the implementation does not seem to special case try-catch at all, so it's reasonable that we wouldn't need tests for the success cases. But when I was trying to debug and figure out how to get this change working, it was useful to prove to myself locally that similar cases did already work correctly.
| ) | ||
| ) | ||
| (i32.const 0) | ||
| ) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same question.
e424ec1 to
6b593a0
Compare
kripken
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sounds good, makes sense.
6b593a0 to
837aa77
Compare
Treat them the same as returns and test that they can be folded out of try-catch blocks because they do not have throws effects.
837aa77 to
dc796d4
Compare

Treat them the same as returns and test that they can be folded out of try-catch
blocks because they do not have throws effects.