Skip to content

Commit

Permalink
Test for resume_throw too
Browse files Browse the repository at this point in the history
  • Loading branch information
dhil committed Oct 19, 2023
1 parent 47367c9 commit c81ef89
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions test/core/cont.wast
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,16 @@
(unreachable)))
"non-continuation type 0")

(assert_invalid
(module
(type $ft (func))
(type $ct (cont $ft))
(tag $exn)
(func
(resume_throw $ft $exn (ref.null $ct))
(unreachable)))
"non-continuation type 0")

(assert_invalid
(module
(type $ft (func))
Expand Down

0 comments on commit c81ef89

Please sign in to comment.