Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcjihrig <cjihrig@gmail.com>2019-12-15 18:38:58 +0300
committerRich Trott <rtrott@gmail.com>2019-12-18 04:35:09 +0300
commitb6c589fde50b5b69a77fa6f316bccbc9ff259f48 (patch)
tree646fcd7310508606cc917d17f2c2dbcb9f59488e /doc/api/wasi.md
parent145116b3a16905291f3f1c96646aa89730271002 (diff)
deps,src,test: update to uvwasi 0.0.3
This commit updates to uvwasi 0.0.3, which implements a newer version of the WASI spec, snapshot_1. Since the WASI API has changed, this also requires updating the WebAssembly memory interfacing logic and recompiling the WASI tests with a version of wasi-libc that supports snapshot_1. PR-URL: https://github.com/nodejs/node/pull/30980 Reviewed-By: David Carlier <devnexen@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Rich Trott <rtrott@gmail.com>
Diffstat (limited to 'doc/api/wasi.md')
-rw-r--r--doc/api/wasi.md6
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/api/wasi.md b/doc/api/wasi.md
index f5425bb2bd8..7127e7f8bb0 100644
--- a/doc/api/wasi.md
+++ b/doc/api/wasi.md
@@ -19,7 +19,7 @@ const wasi = new WASI({
'/sandbox': '/some/real/path/that/wasm/can/access'
}
});
-const importObject = { wasi_unstable: wasi.wasiImport };
+const importObject = { wasi_snapshot_preview1: wasi.wasiImport };
(async () => {
const wasm = await WebAssembly.compile(fs.readFileSync('./binary.wasm'));
@@ -82,8 +82,8 @@ added: v13.3.0
* {Object}
`wasiImport` is an object that implements the WASI system call API. This object
-should be passed as the `wasi_unstable` import during the instantiation of a
-[`WebAssembly.Instance`][].
+should be passed as the `wasi_snapshot_preview1` import during the instantiation
+of a [`WebAssembly.Instance`][].
[`WebAssembly.Instance`]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/Instance
[`WebAssembly.Memory`]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/Memory