summaryrefslogtreecommitdiff
path: root/test/binaryen.js/exception-handling.js.txt
blob: 350d543e5db400966f51e49398970828b84b568e (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 $none_=>_none (func))
 (type $i32_=>_none (func (param i32)))
 (event $e (attr 0) (param i32))
 (func $test
  (try
   (do
    (throw $e
     (i32.const 0)
    )
   )
   (catch $e
    (drop
     (pop i32)
    )
    (rethrow 0)
   )
  )
  (try $try_outer
   (do
    (try
     (do
      (throw $e
       (i32.const 0)
      )
     )
     (delegate $try_outer)
    )
   )
   (catch_all
    (nop)
   )
  )
 )
)

getExpressionInfo(throw) = {"id":48,"type":1,"event":"e"}
getExpressionInfo(rethrow) = {"id":49,"type":1,"depth":0}
getExpressionInfo(try_catch) = {"id":47,"type":1,"name":"","hasCatchAll":0,"delegateTarget":"","isDelegate":0}
getExpressionInfo(try_delegate) = {"id":47,"type":0,"name":"try_outer","hasCatchAll":1,"delegateTarget":"","isDelegate":0}