mirror of
https://github.com/denoland/deno.git
synced 2025-01-22 06:09:25 -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 wasmModule = new WebAssembly.Module(wasmCode);
|
||||||
const wasmInstance = new WebAssembly.Instance(wasmModule);
|
const wasmInstance = new WebAssembly.Instance(wasmModule);
|
||||||
const main = wasmInstance.exports.main as CallableFunction
|
const main = wasmInstance.exports.main as CallableFunction
|
||||||
console.log(wasmInstance.exports.main().toString());
|
console.log(main().toString());
|
||||||
```
|
```
|
||||||
|
|
Loading…
Add table
Reference in a new issue