summaryrefslogtreecommitdiff
path: root/test/fixtures/simple.wat
diff options
context:
space:
mode:
authorGus Caplan <me@gus.host>2019-01-05 18:58:16 -0600
committerGus Caplan <me@gus.host>2019-01-08 12:57:24 -0600
commit0c8dedd103f78e3f6f9cc907240b9beaabdf12c3 (patch)
treef93b936c8f68c2b3568d813954a9ff1b4a0c4083 /test/fixtures/simple.wat
parent9987f1abb92461af5b2da61befe7ce0c1ab19503 (diff)
downloadandroid-node-v8-0c8dedd103f78e3f6f9cc907240b9beaabdf12c3.tar.gz
android-node-v8-0c8dedd103f78e3f6f9cc907240b9beaabdf12c3.tar.bz2
android-node-v8-0c8dedd103f78e3f6f9cc907240b9beaabdf12c3.zip
test: clean up wasm fixtures
PR-URL: https://github.com/nodejs/node/pull/25360 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Diffstat (limited to 'test/fixtures/simple.wat')
-rw-r--r--test/fixtures/simple.wat11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/fixtures/simple.wat b/test/fixtures/simple.wat
new file mode 100644
index 0000000000..e3026bffe5
--- /dev/null
+++ b/test/fixtures/simple.wat
@@ -0,0 +1,11 @@
+;; 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))
+)