Skip to content

Commit 3feb115

Browse files
ioannadaheejinRossTate
committed
Apply suggestions from code review
Co-authored-by: Heejin Ahn <[email protected]> Co-authored-by: Ross Tate <[email protected]>
1 parent f495d33 commit 3feb115

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

proposals/exception-handling/Exceptions-formal-overview.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ mod ::= module ... exn*
3939

4040
## Validation (Typing)
4141

42-
To verify that the `rethrow l` instruction refers to a surrounding catch block, we introduce a stack `caught` to validation contexts, which gets an exception index or the keywork `all` prepended whenever we enter instructions inside a `catch exnidx` or `catch_all` block, respectively. This addition is reflected in the execution rules, by the administrative instruction `caught` which models the stack of caught exceptions on the wasm stack.
42+
To verify that the `rethrow l` instruction refers to a surrounding catch block, we introduce a stack `caught` to validation contexts, which gets an exception index or the keyword `all` prepended whenever we enter instructions inside a `catch exnidx` or `catch_all` block, respectively. This addition is reflected in the execution rules, by the administrative instruction `caught` which models the stack of caught exceptions on the wasm stack.
4343

4444

4545
### Instructions
@@ -76,9 +76,9 @@ try bt instr* delegate l : bt
7676
7777
bt = [t1*] -> [t2*]
7878
C, label [t2*] |- instr_1* : [t1*] -> [t2*]
79-
C, label [t2*], caught all |- instr_2* : [] -> [t2*]
79+
C, label [t2*] |- instr_2* : [] -> []
8080
----------------------------------------------------
81-
try bt instr_1* unwind instr_2* : bt
81+
try bt instr_1* unwind instr_2* end : bt
8282
```
8383

8484
## Execution (Reduction)

0 commit comments

Comments
 (0)