Skip to content
This repository was archived by the owner on Apr 25, 2025. It is now read-only.

Commit 275c449

Browse files
committed
Fix catch / catch_all rule
1 parent c7faca3 commit 275c449

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

proposals/exception-handling/Exceptions.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -390,12 +390,13 @@ document](https://github.com/WebAssembly/spec/blob/master/document/core/text/ins
390390
The following rules are added to *instructions*:
391391

392392
```
393-
try blocktype instruction* (catch instruction*)+ (catch instruction*)* (catch_all instruction*)? end |
393+
try blocktype instruction* (catch instruction*)* (catch_all instruction*)? end |
394394
try blocktype instruction* unwind instruction* end |
395395
try blocktype instruction* delegate label |
396396
throw (exception except_index) |
397397
rethrow label |
398398
```
399+
(In the first rule, there should be at least one `catch` or `catch_all` block.)
399400

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

0 commit comments

Comments
 (0)