aboutsummaryrefslogtreecommitdiff
path: root/tmp/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'tmp/index.html')
-rw-r--r--tmp/index.html14
1 files changed, 0 insertions, 14 deletions
diff --git a/tmp/index.html b/tmp/index.html
deleted file mode 100644
index b222149..0000000
--- a/tmp/index.html
+++ /dev/null
@@ -1,14 +0,0 @@
-<script type="module">
- import * as api from "./api-wasm.js";
-
- WebAssembly
- .instantiateStreaming(fetch("add.wasm"), { env: api })
- .then(({instance: {exports}}) => {
- const added = exports.add(4, 5);
- console.log("Adding 4 and 5:", added);
-
- exports.persistInt(6);
- const persisted = exports.retrieveInt();
- console.log("Persisted number:", persisted);
- });
-</script>