1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-22 15:06:54 -05:00

docs(getting_started): fix WebAssembly example (#8028)

This commit is contained in:
Casper Beyer 2020-10-19 20:43:58 +08:00 committed by GitHub
parent 19b918d112
commit e58763737e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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());
```