Skip to content

Commit b523289

Browse files
committed
test
1 parent 96b2130 commit b523289

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

test/lit/exec/cont_export_throw.wast

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,17 +15,15 @@
1515

1616
(tag $tag (type $none))
1717

18-
(export "suspend" (func $suspend))
19-
(export "handled" (func $handle))
20-
(export "suspend_invoker" (func $suspend))
21-
2218
;; CHECK: [fuzz-exec] calling suspend
2319
;; CHECK-NEXT: [exception thrown: unhandled suspend]
24-
(func $suspend
20+
(func $suspend (export "suspend")
2521
(suspend $tag)
2622
)
2723

28-
(func $handle
24+
;; CHECK: [fuzz-exec] calling handled
25+
;; CHECK-NEXT: [exception thrown: __private externref]
26+
(func $handled (export "handled")
2927
(drop
3028
(block $block (result (ref $cont))
3129
(resume $cont (on $tag $block)
@@ -38,6 +36,12 @@
3836
)
3937
)
4038

39+
;; CHECK: [fuzz-exec] calling suspend2
40+
;; CHECK-NEXT: [exception thrown: unhandled suspend]
41+
(func $suspend2 (export "suspend2")
42+
(suspend $tag)
43+
)
44+
4145
(func $cont
4246
;; This calls $suspend through an export, which traps as we cannot suspend
4347
;; through JS.

0 commit comments

Comments
 (0)