1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-26 16:09:27 -05:00

docs(std/wasi): fix reference to the wrong object in example (#7124)

This commit is contained in:
Casper Beyer 2020-08-20 23:48:33 +08:00 committed by GitHub
parent cd67f7bdc8
commit 5adb6cba3e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -68,7 +68,7 @@ const instance = await WebAssembly.instantiate(module, {
wasi_snapshot_preview1: wasi.exports,
});
wasi.memory = module.exports.memory;
wasi.memory = instance.exports.memory;
if (module.exports._start) {
instance.exports._start();