make serializer work correct

This commit is contained in:
Ilya Rezvov
2018-02-19 14:30:06 -08:00
parent 809d5bbf38
commit 8dc40aa699
5 changed files with 54 additions and 4 deletions
+11
View File
@@ -0,0 +1,11 @@
<script>
fetch('fact.wast').then(response =>
response.arrayBuffer()
).then(bytes =>
WebAssembly.instantiate(bytes, {})
).then(results => {
console.log('result', results)
const fact = results.instance.exports['fac-iter-named-32']
console.log(fact, fact(5))
});
</script>