File tree Expand file tree Collapse file tree 1 file changed +10
-6
lines changed
Expand file tree Collapse file tree 1 file changed +10
-6
lines changed Original file line number Diff line number Diff line change 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 )
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.
You can’t perform that action at this time.
0 commit comments