Skip to content

Commit

Permalink
Fix catch / catch_all rule
Browse files Browse the repository at this point in the history
  • Loading branch information
aheejin committed Feb 19, 2021
1 parent c7faca3 commit 275c449
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion proposals/exception-handling/Exceptions.md
Original file line number Diff line number Diff line change
Expand Up @@ -390,12 +390,13 @@ document](https://github.com/WebAssembly/spec/blob/master/document/core/text/ins
The following rules are added to *instructions*:

```
try blocktype instruction* (catch instruction*)+ (catch instruction*)* (catch_all instruction*)? end |
try blocktype instruction* (catch instruction*)* (catch_all instruction*)? end |
try blocktype instruction* unwind instruction* end |
try blocktype instruction* delegate label |
throw (exception except_index) |
rethrow label |
```
(In the first rule, there should be at least one `catch` or `catch_all` block.)

Like the `block`, `loop`, and `if` instructions, the `try` instruction is
*structured* control flow instruction, and can be labeled. This allows branch
Expand Down

0 comments on commit 275c449

Please sign in to comment.