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

Commit a236e95

Browse files
ioannadaheejin
andauthored
Apply suggestions from code review
This commit will be soon moved to a PR with the minor (non-delegate specific) changes. Co-authored-by: Heejin Ahn <[email protected]>
1 parent 7f1d39a commit a236e95

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

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

+2-3
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ mod ::= 'module' ... tag*
3636

3737
## Validation (Typing)
3838

39-
4039
### Validation Contexts: Tagtypes and modified Labels
4140

4241
To verify that the `rethrow l` instruction refers to a label surrounding the instructions of a catch block (call this a catch-label), we introduce a `kind` attribute to labels in the validation context, which is set to `catch` when the label is a catch-label and empty otherwise.
@@ -130,7 +129,7 @@ C^k ::= 'catch'{ tagaddr? instr* }* B^k 'end'
130129
| 'delegate'{ labelidx } B^k 'end'
131130
```
132131

133-
Note the `C` in `C^k` above stands for `control`, because the related administrative instructions are in some ways modelling [control frame opcodes](https://webassembly.github.io/spec/core/appendix/algorithm.html?highlight=control#data-structures) "on the stack".
132+
Note the `C` in `C^k` above stands for `control`, because the related administrative instructions are in some ways modeling [control frame opcodes](https://webassembly.github.io/spec/core/appendix/algorithm.html?highlight=control#data-structures) "on the stack".
134133

135134
#### Throw Contexts
136135

@@ -202,7 +201,7 @@ S ⊢ tag a : tag [t*]→[]
202201
-------------------------------
203202
S;C ⊢ throw a : [t1* t*]→[t2*]
204203
205-
((S ⊢ tag a : tag [t*]→[])?
204+
((S ⊢ tag a : tag [t1*]→[])?
206205
S;C, labels (catch [t2*]) ⊢ instr2* : [t1*?]→[t2*])*
207206
S;C, labels [t2*] ⊢ instr1* : []→[t2*]
208207
-----------------------------------------------------------

0 commit comments

Comments
 (0)