diff options
author | Marcos Casagrande <marcoscvp90@gmail.com> | 2020-06-25 04:21:39 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-24 22:21:39 -0400 |
commit | 6527189520b62c08f0e376a5a1f0163f0de82baa (patch) | |
tree | 2f61bb391badd32cb72300d4808942846cc75a73 | |
parent | 87f8f99c49e62c06f85bb453a7c12b32634c3bef (diff) |
doc(std/wasi): fix example (#6464)
-rw-r--r-- | std/wasi/README.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/std/wasi/README.md b/std/wasi/README.md index 137f0762a..3848ae9a6 100644 --- a/std/wasi/README.md +++ b/std/wasi/README.md @@ -62,7 +62,7 @@ const wasi = new WASI({ env: Deno.env, }); -const binary = Deno.readAll("path/to/your/module.wasm"); +const binary = await Deno.readFile("path/to/your/module.wasm"); const module = await WebAssembly.compile(binary); const instance = await WebAssembly.instantiate(module, { wasi_snapshot_preview1: wasi.exports, |