blob: 3151d1ea8e95a41bfb0a3784afe807fb234e47cb (
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
48
49
50
|
(module
(type $0 (func (param exnref) (result exnref)))
(type $1 (func))
(type $2 (func (param i32)))
(event $event$0 (attr 0) (param i32))
(func $exnref_test (; 0 ;) (type $0) (param $0 exnref) (result exnref)
(local.get $0)
)
(func $foo (; 1 ;) (type $1)
(nop)
)
(func $bar (; 2 ;) (type $1)
(nop)
)
(func $eh_test (; 3 ;) (type $1)
(local $0 exnref)
(try
(throw $event$0
(i32.const 0)
)
(catch
(local.set $0
(exnref.pop)
)
(drop
(block $label$3 (result i32)
(rethrow
(br_on_exn $label$3 $event$0
(local.get $0)
)
)
)
)
)
)
(block $label$4
(try
(br $label$4)
(catch
(drop
(exnref.pop)
)
(br $label$4)
)
)
)
(unreachable)
)
)
|