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

Allow catch/delegate-less trys #157

Merged
merged 2 commits into from
Jun 11, 2021
Merged

Conversation

aheejin
Copy link
Member

@aheejin aheejin commented Jun 7, 2021

This was suggested here:
#131 (comment)

Closes #131.

aheejin added a commit to aheejin/binaryen that referenced this pull request Jun 7, 2021
This removes the restriction that `try` should have at least one
`catch`/`catch_all`/`delegate`. See WebAssembly/exception-handling#157.
aheejin added a commit to aheejin/binaryen that referenced this pull request Jun 7, 2021
This removes the restriction that `try` should have at least one
`catch`/`catch_all`/`delegate`. See WebAssembly/exception-handling#157.
proposals/exception-handling/Exceptions.md Outdated Show resolved Hide resolved
Co-authored-by: Thomas Lively <7121787+tlively@users.noreply.github.com>
Copy link
Member

@rossberg rossberg left a comment

Choose a reason for hiding this comment

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

Thanks!

ioannad added a commit to ioannad/exception-handling that referenced this pull request Jun 8, 2021
In particular:
- The labels surrounding try-catch and try-delegate now get a standard
  label in the first step, which is then refined to catch-labels and/or
  try-labels per subblock.
  + For that I allowed the new administrative instructions to appear
    nested directly inside a label_n{} in block contexts.
  + Also added a validation rule to the administrative label_n{}.
  + Due to this, all block contexts appear now without a successor
    exponent.
- Updated to latest try-catch syntax described in issue WebAssembly#157.
- Corrected some previously wrong syntax.
- Removed try-unwind (...) as per issue WebAssembly#156
- Updated Exceptions-formal-examples.md similarly.
Ms2ger pushed a commit to Ms2ger/exception-handling that referenced this pull request Jun 9, 2021
@aheejin aheejin merged commit 7eff14a into WebAssembly:master Jun 11, 2021
@aheejin aheejin deleted the no_catch branch June 11, 2021 06:43
aheejin added a commit to WebAssembly/binaryen that referenced this pull request Jun 11, 2021
This removes the restriction that `try` should have at least one
`catch`/`catch_all`/`delegate`. See WebAssembly/exception-handling#157.
takikawa added a commit to takikawa/wabt that referenced this pull request Jun 13, 2021
Matches recent changes in the exception handling spec that allowed
this case to reduce special cases in the syntax:

  WebAssembly/exception-handling#157
takikawa added a commit to takikawa/wasm-tools that referenced this pull request Jun 14, 2021
The exception handling spec now allows bare `try` blocks that
have no corresponding `catch` (or other) clauses following it.
These blocks are semantically equivalent to `block`.

Related spec PR:

  WebAssembly/exception-handling#157
takikawa added a commit to takikawa/wasm-tools that referenced this pull request Jun 15, 2021
The exception handling spec now allows bare `try` blocks that
have no corresponding `catch` (or other) clauses following it.
These blocks are semantically equivalent to `block`.

Related spec PR:

  WebAssembly/exception-handling#157
alexcrichton pushed a commit to bytecodealliance/wasm-tools that referenced this pull request Jun 15, 2021
The exception handling spec now allows bare `try` blocks that
have no corresponding `catch` (or other) clauses following it.
These blocks are semantically equivalent to `block`.

Related spec PR:

  WebAssembly/exception-handling#157
@aheejin aheejin mentioned this pull request Jun 22, 2021
takikawa added a commit to takikawa/wabt that referenced this pull request Jun 22, 2021
Matches recent changes in the exception handling spec that allowed
this case to reduce special cases in the syntax:

  WebAssembly/exception-handling#157
moz-v2v-gh pushed a commit to mozilla/gecko-dev that referenced this pull request Jun 22, 2021
The proposal spec for exception handling was recently changed
to allow a `try` block with no `catch` or `delegate` clauses:

  WebAssembly/exception-handling#157

Differential Revision: https://phabricator.services.mozilla.com/D118088
ioannad added a commit to ioannad/exception-handling that referenced this pull request Jun 25, 2021
In particular:
- The labels surrounding try-catch and try-delegate now get a standard
  label in the first step, which is then refined to catch-labels and/or
  try-labels per subblock.
  + For that I allowed the new administrative instructions to appear
    nested directly inside a label_n{} in block contexts.
  + Also added a validation rule to the administrative label_n{}.
  + Due to this, all block contexts appear now without a successor
    exponent.
- Updated to latest try-catch syntax described in issue WebAssembly#157.
- Corrected some previously wrong syntax.
- Removed try-unwind (...) as per issue WebAssembly#156
- Updated Exceptions-formal-examples.md similarly.
takikawa added a commit to takikawa/wabt that referenced this pull request Jun 29, 2021
Matches recent changes in the exception handling spec that allowed
this case to reduce special cases in the syntax:

  WebAssembly/exception-handling#157
takikawa added a commit to takikawa/wabt that referenced this pull request Jun 29, 2021
Matches recent changes in the exception handling spec that allowed
this case to reduce special cases in the syntax:

  WebAssembly/exception-handling#157
aheejin pushed a commit to WebAssembly/wabt that referenced this pull request Jun 30, 2021
Matches recent changes in the exception handling spec that allowed
this case to reduce special cases in the syntax:

  WebAssembly/exception-handling#157
jamienicol pushed a commit to jamienicol/gecko that referenced this pull request Jul 16, 2021
The proposal spec for exception handling was recently changed
to allow a `try` block with no `catch` or `delegate` clauses:

  WebAssembly/exception-handling#157

Differential Revision: https://phabricator.services.mozilla.com/D118088
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.

Could the different try variants be combined?
5 participants