summaryrefslogtreecommitdiff
path: root/test/binaryen.js/exception-handling.js.txt
blob: f8b71302538e2d9be50a33dabb5c09b1aba989a8 (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
(module
 (type $0 (func (param i32)))
 (type $1 (func))
 (tag $e (param i32))
 (func $test
  (try $l0
   (do
    (throw $e
     (i32.const 0)
    )
   )
   (catch $e
    (drop
     (pop i32)
    )
    (rethrow $l0)
   )
  )
  (try $try_outer
   (do
    (try
     (do
      (throw $e
       (i32.const 0)
      )
     )
     (delegate $try_outer)
    )
   )
   (catch_all
    (nop)
   )
  )
 )
)

getExpressionInfo(throw) = {"id":54,"type":1,"tag":"e"}
getExpressionInfo(rethrow) = {"id":55,"type":1,"target":"l0"}
getExpressionInfo(try_catch) = {"id":52,"type":1,"name":"l0","hasCatchAll":0,"delegateTarget":"","isDelegate":0}
getExpressionInfo(try_delegate) = {"id":52,"type":0,"name":"try_outer","hasCatchAll":1,"delegateTarget":"","isDelegate":0}