Skip to content

Commit

Permalink
Test empty handler
Browse files Browse the repository at this point in the history
  • Loading branch information
rossberg committed Feb 22, 2021
1 parent c3a3a3d commit be2c1c0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/core/cont.wast
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@
)

(func (export "unhandled-2")
(resume (cont.new (type $k1) (ref.func $f1)))
)

(func (export "unhandled-3")
(block $h (result (ref $k1))
(resume (event $e2 $h) (cont.new (type $k1) (ref.func $f1)))
(unreachable)
Expand Down Expand Up @@ -68,6 +72,7 @@

(assert_suspension (invoke "unhandled-1") "unhandled")
(assert_suspension (invoke "unhandled-2") "unhandled")
(assert_suspension (invoke "unhandled-3") "unhandled")
(assert_return (invoke "handled"))

(assert_exception (invoke "uncaught-1") "unhandled")
Expand Down

0 comments on commit be2c1c0

Please sign in to comment.