summaryrefslogtreecommitdiffstats
path: root/vendor/wasm-bindgen/tests/headless/snippets1.js
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/wasm-bindgen/tests/headless/snippets1.js')
-rw-r--r--vendor/wasm-bindgen/tests/headless/snippets1.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/vendor/wasm-bindgen/tests/headless/snippets1.js b/vendor/wasm-bindgen/tests/headless/snippets1.js
new file mode 100644
index 000000000..12e5a6bff
--- /dev/null
+++ b/vendor/wasm-bindgen/tests/headless/snippets1.js
@@ -0,0 +1,9 @@
+export function get_two() {
+ return 2;
+}
+
+let a = 0;
+export function get_stateful() {
+ a += 1;
+ return a;
+}