| (module |
| (type $none_=>_none (func)) |
| (type $i32_=>_none (func (param i32))) |
| (type $none_=>_i64 (func (result i64))) |
| (event $e0 (attr 0) (param i32)) |
| (func $eh (; 0 ;) |
| (local $exn exnref) |
| try |
| i32.const 0 |
| throw $e0 |
| catch |
| |
| local.set $exn |
| block $l0 (result i32) |
| local.get $exn |
| br_on_exn $l0 $e0 |
| rethrow |
| end |
| drop |
| end |
| ) |
| (func $drop_unreachable_block (; 1 ;) (result i64) |
| unreachable |
| ) |
| ) |
| (module |
| (type $none_=>_none (func)) |
| (type $i32_=>_none (func (param i32))) |
| (type $none_=>_i64 (func (result i64))) |
| (event $e0 (attr 0) (param i32)) |
| (func $eh (; 0 ;) (; has Stack IR ;) |
| (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) |
| ) |
| ) |
| ) |
| ) |
| ) |
| ) |
| ) |
| (func $drop_unreachable_block (; 1 ;) (; has Stack IR ;) (result i64) |
| (drop |
| (block $label$1 (result i32) |
| (unreachable) |
| ) |
| ) |
| (i64.const 1) |
| ) |
| ) |