mirror of
https://github.com/denoland/deno.git
synced 2024-11-26 16:09:27 -05:00
doc(std/wasi): fix example (#6464)
This commit is contained in:
parent
87f8f99c49
commit
6527189520
1 changed files with 1 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue