summaryrefslogtreecommitdiff
path: root/test/binaryen.js/exception-handling.js.txt
blob: 69b619564e6c108f277530c46307a58a51220756 (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
(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)
   )
  )
 )
)

getExpressionInfo(throw) = {"id":48,"type":1,"event":"e"}
getExpressionInfo(rethrow) = {"id":49,"type":1,"depth":0}
getExpressionInfo(try) = {"id":47,"type":1,"hasCatchAll":0}