try2 wasm
<script type="module">
(async() => {
const response = await fetch('');
const bytes = await response.arrayBuffer();
const { instance } = await WebAssembly.instantiate(bytes);
console.log('The answer is: ' + instance.exports.add(1, 2));
})();
</script>
No comments:
Post a Comment