1
0
Fork 0
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:
Marcos Casagrande 2020-06-25 04:21:39 +02:00 committed by GitHub
parent 87f8f99c49
commit 6527189520
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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,