blob: 8e9dfc415fcb4141af386ca766fa06d06a27af87 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
(module
(type $none_=>_none (func))
(type $i32_=>_none (func (param i32)))
(event $e0 (attr 0) (param i32))
(func $eh (; 0 ;)
(local $exn exnref)
try
i32.const 0
throw $e0
catch
local.set $exn
block $l0 (result i32)
local.get $exn
br_on_exn $l0 $e0
rethrow
end
drop
end
)
)
(module
(type $none_=>_none (func))
(type $i32_=>_none (func (param i32)))
(event $e0 (attr 0) (param i32))
(func $eh (; 0 ;) (; has Stack IR ;)
(local $exn exnref)
(try
(throw $e0
(i32.const 0)
)
(catch
(local.set $exn
(exnref.pop)
)
(drop
(block $l0 (result i32)
(rethrow
(br_on_exn $l0 $e0
(local.get $exn)
)
)
)
)
)
)
)
)
|