summaryrefslogtreecommitdiff
path: root/test/passes/generate-stack-ir_optimize-stack-ir_print-stack-ir_enable-exception-handling.wast
blob: c355a2bf1d07a9c8496f30d8e361c3964f87cbe6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
(module
  (event $e0 (attr 0) (param i32))

  (func $eh (local $exn exnref)
    (try
      (throw $e0 (i32.const 0))
      (catch
        (local.set $exn (exnref.pop))
        (drop
          (block $l0 (result i32)
            (rethrow
              (br_on_exn $l0 $e0 (local.get $exn))
            )
          )
        )
      )
    )
  )
)