Skip to content

Commit

Permalink
Allow cont ref to be non-null in switch (WebAssembly#85)
Browse files Browse the repository at this point in the history
  • Loading branch information
Alan-Liang authored Sep 2, 2024
1 parent 5bf661b commit 92cbcc5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion proposals/stack-switching/Explainer.md
Original file line number Diff line number Diff line change
Expand Up @@ -815,7 +815,7 @@ This abbreviation will be formalised with an auxiliary function or other means i
- `switch <typeidx> <tagidx>`
- Switch to executing a given continuation directly, suspending the current execution.
- The suspension and switch are performed from the perspective of a parent `(on $e switch)` handler, determined by the annotated control tag.
- `switch $ct1 $e : [t1* (ref null $ct1)] -> [t2*]`
- `switch $ct1 $e : [t1* (ref null? $ct1)] -> [t2*]`
- iff `C.tags[$e] = tag $ft`
- and `C.types[$ft] ~~ func [] -> [t*]`
- and `C.types[$ct1] ~~ cont [t1* (ref null? $ct2)] -> [te1*]`
Expand Down

0 comments on commit 92cbcc5

Please sign in to comment.