blob: 870eb52bfc000a40f59f3d60c903419573abf26b (
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
27
28
|
;;; TOOL: wat2wasm
;;; ARGS: --enable-exceptions
(module
(event (param i32))
;; try w/ multiple results
(func
try (result f32 f32)
f32.const 0
f32.const 1
catch 0
drop
f32.const 2
f32.const 3
end
return)
;; try w/ params
(func
i32.const 0
try (param i32) (result i32)
i32.eqz
catch 0
drop
i32.const 0
end
return)
)
|