mirror of
https://github.com/nodejs/node.git
synced 2024-11-30 07:27:22 +01:00
0c8dedd103
PR-URL: https://github.com/nodejs/node/pull/25360 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
12 lines
287 B
Plaintext
12 lines
287 B
Plaintext
;; Compiled using the WebAssembly Tootkit (https://github.com/WebAssembly/wabt)
|
|
;; $ wat2wasm simple.wat -o simple.wasm
|
|
|
|
(module
|
|
(func $add (param $a i32) (param $b i32) (result i32)
|
|
;; return $a + $b
|
|
(i32.add (get_local $a) (get_local $b))
|
|
)
|
|
|
|
(export "add" (func $add))
|
|
)
|