Skip to content

Make try body with multiple instructions roundtrip#2374

Merged
aheejin merged 1 commit intoWebAssembly:masterfrom
aheejin:catch_fix
Oct 9, 2019
Merged

Make try body with multiple instructions roundtrip#2374
aheejin merged 1 commit intoWebAssembly:masterfrom
aheejin:catch_fix

Conversation

@aheejin
Copy link
Copy Markdown
Member

@aheejin aheejin commented Oct 9, 2019

Previously we didn't print an additional block when there are multiple
instructions within a try body, so those wast files cannot be parsed
correctly, because the wast parser assumes there are two bodies within a
try scope: a try body and a catch body.

We don't need to print an additional block for a catch body because
(catch ...) itself serves as a scope.

Previously we didn't print an additional block when there are multiple
instructions within a `try` body, so those wast files cannot be parsed
correctly, because the wast parser assumes there are two bodies within a
`try` scope: a try body and a catch body.

We don't need to print an additional block for a `catch` body because
`(catch ...)` itself serves as a scope.
@aheejin aheejin requested a review from kripken October 9, 2019 11:54
@aheejin aheejin merged commit 13725e5 into WebAssembly:master Oct 9, 2019
@aheejin aheejin deleted the catch_fix branch October 9, 2019 20:40
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