blob: 02342c52d77aaa333cf67a266a3b7223d3135d26 (
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
|
;;; TOOL: wat2wasm
;;; ARGS: --enable-exceptions --enable-multi-value
(module
;; try w/ multiple results
(func
try (result f32 f32)
f32.const 0
f32.const 1
catch
drop
f32.const 2
f32.const 3
end
return)
;; try w/ params
(func
i32.const 0
try (param i32) (result i32)
i32.eqz
catch
drop ;; no i32 param, just exnref
i32.const 0
end
return)
)
|