aboutsummaryrefslogtreecommitdiffhomepage
path: root/testdata/wasmfunc.txt
diff options
context:
space:
mode:
authorAyke van Laethem <[email protected]>2024-10-18 12:29:28 +0200
committerRon Evans <[email protected]>2024-10-19 16:00:45 +0100
commitcd2bb8333d859a311d8ff9e94cb4e0fade8f65b3 (patch)
treec9942071f024513dded813226b0ede134c51d467 /testdata/wasmfunc.txt
parent5e3c816373b831897a152e60ed858d811ead4bbf (diff)
downloadtinygo-cd2bb8333d859a311d8ff9e94cb4e0fade8f65b3.tar.gz
tinygo-cd2bb8333d859a311d8ff9e94cb4e0fade8f65b3.zip
wasm: add test for js.FuncOf
While there are some browser tests, Node.js is just a lot better for testing this kind of stuff because it's much faster and we don't need a browser for this.
Diffstat (limited to 'testdata/wasmfunc.txt')
-rw-r--r--testdata/wasmfunc.txt7
1 files changed, 7 insertions, 0 deletions
diff --git a/testdata/wasmfunc.txt b/testdata/wasmfunc.txt
new file mode 100644
index 000000000..be41eba3c
--- /dev/null
+++ b/testdata/wasmfunc.txt
@@ -0,0 +1,7 @@
+calling callback!
+inside callback! parameters:
+ parameter: 1
+ parameter: 2
+ parameter: 3
+ parameter: 4
+result from callback: 10