summaryrefslogtreecommitdiff
path: root/test/binaryen.js/exception-handling.js.txt
blob: e7c72e6a76f8605f4481cab224dbdc62669e9eaa (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":47,"type":1,"event":"e"}
getExpressionInfo(rethrow) = {"id":48,"type":1,"depth":0}
getExpressionInfo(try) = {"id":46,"type":1,"hasCatchAll":0}