File tree 1 file changed +3
-3
lines changed
proposals/exception-handling/legacy
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -703,9 +703,9 @@ throws, and rethrows as follows:
703
703
| ` try ` | ` 0x06 ` | sig : ` blocktype ` | begins a block which can handle thrown exceptions |
704
704
| ` catch ` | ` 0x07 ` | index : ` varint32 ` | begins the catch block of the try block |
705
705
| ` 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 ` |
709
709
710
710
The * sig* fields of ` block ` , ` if ` , and ` try ` operators are block signatures
711
711
which describe their use of the operand stack.
You can’t perform that action at this time.
0 commit comments