Skip to content

Commit e7c7c31

Browse files
authored
Clarify descriptions of control flow operators (#340)
1 parent da1e907 commit e7c7c31

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

proposals/exception-handling/legacy/Exceptions.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -703,9 +703,9 @@ throws, and rethrows as follows:
703703
| `try` | `0x06` | sig : `blocktype` | begins a block which can handle thrown exceptions |
704704
| `catch` | `0x07` | index : `varint32` | begins the catch block of the try block |
705705
| `catch_all` | `0x19` | | begins the catch_all block of the try block |
706-
| `delegate` | `0x18` | relative_depth : `varuint32` | begins the delegate block of the try block |
707-
| `throw` | `0x08` | index : `varint32` | Creates an exception defined by the tag and then throws it |
708-
| `rethrow` | `0x09` | relative_depth : `varuint32` | Pops the `exnref` on top of the stack and throws it |
706+
| `delegate` | `0x18` | relative_depth : `varuint32` | ends the current try block and delegates any exceptions to the block at `relative_depth` |
707+
| `throw` | `0x08` | index : `varint32` | creates an exception defined by the tag and then throws it |
708+
| `rethrow` | `0x09` | relative_depth : `varuint32` | throws the exception caught by the catch block at `relative_depth` |
709709

710710
The *sig* fields of `block`, `if`, and `try` operators are block signatures
711711
which describe their use of the operand stack.

0 commit comments

Comments
 (0)