From b90489eead514a433b3b33b0a4181d8a51ba7541 Mon Sep 17 00:00:00 2001 From: Michael Dawson Date: Tue, 28 Mar 2023 15:28:41 -0400 Subject: [PATCH 1/6] wasi: no longer require flag to enable wasi - no longer require flag to enable experimental wasi feature - wasi is still documented as experimental Signed-off-by: Michael Dawson --- doc/api/cli.md | 4 ++ doc/api/wasi.md | 3 -- lib/internal/process/pre_execution.js | 2 - src/node_options.cc | 5 +- src/node_options.h | 1 - test/parallel/test-repl-built-in-modules.js | 48 -------------------- test/wasi/test-return-on-exit.js | 1 - test/wasi/test-wasi-initialize-validation.js | 1 - test/wasi/test-wasi-not-started.js | 1 - test/wasi/test-wasi-options-validation.js | 2 - test/wasi/test-wasi-require-flag.js | 9 ---- test/wasi/test-wasi-start-validation.js | 1 - test/wasi/test-wasi-stdio.js | 1 - test/wasi/test-wasi-symlinks.js | 1 - test/wasi/test-wasi-worker-terminate.js | 1 - test/wasi/test-wasi.js | 1 - 16 files changed, 5 insertions(+), 77 deletions(-) delete mode 100644 test/parallel/test-repl-built-in-modules.js delete mode 100644 test/wasi/test-wasi-require-flag.js diff --git a/doc/api/cli.md b/doc/api/cli.md index 6fe2ce6b2be5e7..94116a08fd5dc3 100644 --- a/doc/api/cli.md +++ b/doc/api/cli.md @@ -626,6 +626,10 @@ added: - v13.3.0 - v12.16.0 changes: + - version: REPLACEME + pr-url: https://github.com/nodejs/node/pull/47286 + description: This option is no longer required as wasi is + enabled by default, but can still be passed. - version: v13.6.0 pr-url: https://github.com/nodejs/node/pull/30980 description: changed from `--experimental-wasi-unstable-preview0` to diff --git a/doc/api/wasi.md b/doc/api/wasi.md index ac395b70894c99..f70470d8dc0732 100644 --- a/doc/api/wasi.md +++ b/doc/api/wasi.md @@ -97,9 +97,6 @@ Use [wabt](https://github.com/WebAssembly/wabt) to compile `.wat` to `.wasm` $ wat2wasm demo.wat ``` -The `--experimental-wasi-unstable-preview1` CLI argument is needed for this -example to run. - ## Class: `WASI`