Skip to content

Allow plain try with no catch or delegate - #1676

Merged
aheejin merged 2 commits into
WebAssembly:mainfrom
takikawa:allow-plain-try-block
Jun 30, 2021
Merged

aheejin merged 2 commits into
WebAssembly:mainfrom
takikawa:allow-plain-try-block

Conversation

@takikawa

Copy link
Copy Markdown
Contributor

Recent changes in the exception handling proposal spec (WebAssembly/exception-handling#157) now allow a try block with no catch or other clauses (to reduce syntactic special cases). In this case, a try is identical to a block.

This PR adds support for this extra case.

@takikawa

Copy link
Copy Markdown
Contributor Author

Updated for compatibility with events->tag renaming.

@takikawa

Copy link
Copy Markdown
Contributor Author

@aheejin would you be a good person to review this patch? (ditto for #1675) I'd use "request review" but I think I can't use that feature on this repo.

@aheejin aheejin left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Sorry for the delayed reply!

Comment thread src/wast-parser.cc Resolved
@takikawa
takikawa force-pushed the allow-plain-try-block branch from 1ae0170 to ff28aab Compare June 29, 2021 16:53
takikawa added 2 commits June 29, 2021 15:48
Matches recent changes in the exception handling spec that allowed
this case to reduce special cases in the syntax:

  WebAssembly/exception-handling#157
@takikawa
takikawa force-pushed the allow-plain-try-block branch from ff28aab to 62d91c5 Compare June 29, 2021 22:51
@takikawa

Copy link
Copy Markdown
Contributor Author

This is now rebased to fix conflicts (conflicted with unwind deletion PR).

@aheejin aheejin left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thank you!

@aheejin
aheejin merged commit 16ab434 into WebAssembly:main Jun 30, 2021
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