wasm: add glue JS code

The file wasm_glue.js was copied from the Go wasm port and was modified,
most importantly to match the TinyGo calling convention.
This commit is contained in:
Ayke van Laethem
2018-10-23 21:34:54 +02:00
parent 242a1843d1
commit dbb3211485
4 changed files with 449 additions and 37 deletions
+2 -1
View File
@@ -5,7 +5,8 @@
<meta charset="utf-8"/>
<title>Go WebAssembly</title>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<script src="wasm.js" async></script>
<script src="../../../targets/wasm_exec.js" defer></script>
<script src="wasm.js" defer></script>
</head>
<body>
<h1>WebAssembly</h1>