make serializer work correct

This commit is contained in:
Ilya Rezvov committed 2018-02-19 14:30:06 -08:00
1 parent 809d5bbf38
commit 8dc40aa699
5 files changed
+54 -4

No files matched your search

+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>