summaryrefslogtreecommitdiff
path: root/test/binaryen.js/exception-handling.js.txt
blob: dd395a25a65cc98a146857fc626ec7f0776758b5 (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
(module
 (type $v (func))
 (type $vi (func (param i32)))
 (event $e (attr 0) (param i32))
 (func $test (; 0 ;) (type $v)
  (local $0 exnref)
  (try
   (throw $e
    (i32.const 0)
   )
   (catch
    (local.set $0
     (exnref.pop)
    )
    (drop
     (block $l (result i32)
      (rethrow
       (br_on_exn $l $e
        (local.get $0)
       )
      )
     )
    )
   )
  )
 )
)

getExpressionInfo(throw) = {"id":41,"type":8,"event":"e"}
getExpressionInfo(br_on_exn) = {"id":43,"type":7,"name":"l","event":"e"}
getExpressionInfo(rethrow) = {"id":42,"type":8}
getExpressionInfo(try) = {"id":40,"type":0}