From 5adb6cba3ee443801a4d54e894284183ef096364 Mon Sep 17 00:00:00 2001 From: Casper Beyer Date: Thu, 20 Aug 2020 23:48:33 +0800 Subject: docs(std/wasi): fix reference to the wrong object in example (#7124) --- std/wasi/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'std/wasi') diff --git a/std/wasi/README.md b/std/wasi/README.md index 06dc36ff5..4cbcbbca3 100644 --- a/std/wasi/README.md +++ b/std/wasi/README.md @@ -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(); -- cgit v1.2.3