mirror of
https://github.com/denoland/deno.git
synced 2024-11-26 16:09:27 -05:00
docs(getting_started): fix WebAssembly example (#8028)
This commit is contained in:
parent
19b918d112
commit
e58763737e
1 changed files with 1 additions and 1 deletions
|
@ -16,5 +16,5 @@ const wasmCode = new Uint8Array([
|
|||
const wasmModule = new WebAssembly.Module(wasmCode);
|
||||
const wasmInstance = new WebAssembly.Instance(wasmModule);
|
||||
const main = wasmInstance.exports.main as CallableFunction
|
||||
console.log(wasmInstance.exports.main().toString());
|
||||
console.log(main().toString());
|
||||
```
|
||||
|
|
Loading…
Reference in a new issue