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>2020-03-26 07:22:13 +0300
committerRuben Bridgewater <ruben@bridgewater.de>2020-05-30 05:28:02 +0300
commite3b54b4d1c4957554ac4a42c1f156760197552a9 (patch)
tree7febca93c86d3213c4333b290a62847462e57b58 /doc/api/wasi.md
parente2d3230565a970dee4c19332d136a90c298502f7 (diff)
wasi: allow WASI stdio to be configured
This commit adds stdin, stderr, and stdout options to WASI, which allow the stdio streams to be configured. PR-URL: https://github.com/nodejs/node/pull/33544 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: David Carlier <devnexen@gmail.com> Reviewed-By: Juan José Arboleda <soyjuanarbol@gmail.com> Reviewed-By: Zeyu Yang <himself65@outlook.com> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'doc/api/wasi.md')
-rw-r--r--doc/api/wasi.md6
1 files changed, 6 insertions, 0 deletions
diff --git a/doc/api/wasi.md b/doc/api/wasi.md
index ebaf15525d0..3f9c6c7f51b 100644
--- a/doc/api/wasi.md
+++ b/doc/api/wasi.md
@@ -66,6 +66,12 @@ added:
process via the `__wasi_proc_exit()` function. Setting this option to `true`
causes `wasi.start()` to return the exit code rather than terminate the
process. **Default:** `false`.
+ * `stdin` {integer} The file descriptor used as standard input in the
+ WebAssembly application. **Default:** `0`.
+ * `stdout` {integer} The file descriptor used as standard output in the
+ WebAssembly application. **Default:** `1`.
+ * `stderr` {integer} The file descriptor used as standard error in the
+ WebAssembly application. **Default:** `2`.
### `wasi.start(instance)`
<!-- YAML