Skip to content
This repository has been archived by the owner on Oct 7, 2020. It is now read-only.

wasi: put wasi behind a flag #20

Merged
merged 1 commit into from
Sep 26, 2019
Merged

wasi: put wasi behind a flag #20

merged 1 commit into from
Sep 26, 2019

Conversation

cjihrig
Copy link
Contributor

@cjihrig cjihrig commented Sep 25, 2019

This commit puts the WASI implementation behind an --experimental-wasi CLI flag, and prints an experimental warning on first use of WASI. It also includes some misc cleanup.

Copy link
Contributor

@danbev danbev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just noticed that there is one test failure, test-process-env-allowed-flags-are-documented.js. The following patch allowed this to pass for me:

diff --git a/doc/api/cli.md b/doc/api/cli.md
index 6d09b85842..27f5162079 100644
--- a/doc/api/cli.md
+++ b/doc/api/cli.md
@@ -198,6 +198,13 @@ added: v12.3.0

 Enable experimental WebAssembly module support.

+### `--experimental-wasi`
+<!-- YAML
+added: REPLACEME
+-->
+
+Enable experimental WebAssembly System Interface (Wasi) support.
+
 ### `--force-fips`
 <!-- YAML
 added: v6.0.0
@@ -986,6 +993,7 @@ Node.js options that are allowed are:
 * `--experimental-repl-await`
 * `--experimental-report`
 * `--experimental-vm-modules`
+* `--experimental-wasi`
 * `--experimental-wasm-modules`
 * `--force-context-aware`
 * `--force-fips`

This commit puts the WASI implementation behind a
--experimental-wasi CLI flag, and prints an experimental
warning on first use of WASI. It also includes some
misc cleanup.
@cjihrig
Copy link
Contributor Author

cjihrig commented Sep 26, 2019

Good catch @danbev. Thanks! I've incorporated your changes and ran the full test suite locally.

@cjihrig cjihrig merged commit 55306b9 into nodejs:wasi Sep 26, 2019
@cjihrig cjihrig deleted the wasi-next branch September 26, 2019 15:00
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants