We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e4f8a1d commit 9f65b79Copy full SHA for 9f65b79
test/spec/return_call_eh.wast
@@ -0,0 +1,35 @@
1
+;; Test the combination of 'return_call' with exception handling
2
+
3
+(module
4
+ (tag $t)
5
6
+ (func $test (export "test") (result i32)
7
+ (try (result i32)
8
+ (do
9
+ (call $return-call-in-try)
10
+ )
11
+ (catch_all
12
+ ;; Catch the exception thrown from $return-callee
13
+ (i32.const 42)
14
15
16
17
18
19
+ (func $return-call-in-try (result i32)
20
21
22
+ (return_call $return-callee)
23
24
25
+ (unreachable)
26
27
28
29
30
+ (func $return-callee (result i32)
31
+ (throw $t)
32
33
+)
34
35
+(assert_return (invoke "test") (i32.const 42))
0 commit comments