From 34ba7365976b411821585b88a6c420f3d28640b9 Mon Sep 17 00:00:00 2001 From: Michael Dawson Date: Tue, 28 Mar 2023 15:28:41 -0400 Subject: [PATCH] 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 PR-URL: https://github.com/nodejs/node/pull/47286 Reviewed-By: Guy Bedford Reviewed-By: Colin Ihrig --- doc/api/cli.md | 4 ++ doc/api/wasi.md | 3 -- doc/node.1 | 3 +- lib/internal/process/pre_execution.js | 8 ---- src/node_options.cc | 6 +-- 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 - 17 files changed, 8 insertions(+), 84 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 c99d02fc9394ee..f712b9c9a98981 100644 --- a/doc/api/cli.md +++ b/doc/api/cli.md @@ -460,6 +460,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`