doc,lib,src,test: rename WASI CLI flag

The WASI API has moved from preview0 to preview1. This commit
updates the CLI flag accordingly.

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>
This commit is contained in:
cjihrig authored and Ruben Bridgewater committed 2020-01-03 16:12:03 +01:00
1 parent 32805a9525
commit d6f942003b
10 files changed
+16 -11

No files matched your search

+7 -2
View File
@@ -230,9 +230,14 @@ added: v9.6.0
Enable experimental ES Module support in the `vm` module.
### `--experimental-wasi-unstable-preview0`
### `--experimental-wasi-unstable-preview1`
<!-- YAML
added: v13.3.0
changes:
- version: REPLACEME
pr-url: https://github.com/nodejs/node/pull/30980
description: changed from `--experimental-wasi-unstable-preview0` to
`--experimental-wasi-unstable-preview1`
-->
Enable experimental WebAssembly System Interface (WASI) support.
@@ -1073,7 +1078,7 @@ Node.js options that are allowed are:
* `--experimental-resolve-self`
* `--experimental-specifier-resolution`
* `--experimental-vm-modules`
* `--experimental-wasi-unstable-preview0`
* `--experimental-wasi-unstable-preview1`
* `--experimental-wasm-modules`
* `--force-context-aware`
* `--force-fips`
+1 -1
View File
@@ -29,7 +29,7 @@ const importObject = { wasi_snapshot_preview1: wasi.wasiImport };
})();
```
The `--experimental-wasi-unstable-preview0` and `--experimental-wasm-bigint`
The `--experimental-wasi-unstable-preview1` and `--experimental-wasm-bigint`
CLI arguments are needed for the previous example to run.
## Class: WASI
+1 -1
View File
@@ -141,7 +141,7 @@ Enable experimental support for a package to load itself.
.It Fl -experimental-vm-modules
Enable experimental ES module support in VM module.
.
.It Fl -experimental-wasi-unstable-preview0
.It Fl -experimental-wasi-unstable-preview1
Enable experimental WebAssembly System Interface support.
.
.It Fl -experimental-wasm-modules
+1 -1
View File
@@ -404,7 +404,7 @@ function initializeWASI() {
const { NativeModule } = require('internal/bootstrap/loaders');
const mod = NativeModule.map.get('wasi');
mod.canBeRequiredByUsers =
getOptionValue('--experimental-wasi-unstable-preview0');
getOptionValue('--experimental-wasi-unstable-preview1');
}
function initializeCJSLoader() {
+1 -1
View File
@@ -361,7 +361,7 @@ EnvironmentOptionsParser::EnvironmentOptionsParser() {
&EnvironmentOptions::experimental_report,
kAllowedInEnvironment);
#endif // NODE_REPORT
AddOption("--experimental-wasi-unstable-preview0",
AddOption("--experimental-wasi-unstable-preview1",
"experimental WASI support",
&EnvironmentOptions::experimental_wasi,
kAllowedInEnvironment);
+1 -1
View File
@@ -1,4 +1,4 @@
// Flags: --experimental-wasi-unstable-preview0
// Flags: --experimental-wasi-unstable-preview1
'use strict';
const common = require('../common');
+1 -1
View File
@@ -1,6 +1,6 @@
'use strict';
// Flags: --experimental-wasi-unstable-preview0
// Flags: --experimental-wasi-unstable-preview1
require('../common');
const assert = require('assert');
+1 -1
View File
@@ -1,4 +1,4 @@
// Flags: --experimental-wasi-unstable-preview0
// Flags: --experimental-wasi-unstable-preview1
'use strict';
const common = require('../common');
+1 -1
View File
@@ -59,7 +59,7 @@ if (process.argv[2] === 'wasi-child') {
console.log('executing', options.test);
const opts = { env: { ...process.env, NODE_DEBUG_NATIVE: 'wasi' } };
const child = cp.spawnSync(process.execPath, [
'--experimental-wasi-unstable-preview0',
'--experimental-wasi-unstable-preview1',
'--experimental-wasm-bigint',
__filename,
'wasi-child',
+1 -1
View File
@@ -44,7 +44,7 @@ if (process.argv[2] === 'wasi-child') {
opts.input = options.stdin;
const child = cp.spawnSync(process.execPath, [
'--experimental-wasi-unstable-preview0',
'--experimental-wasi-unstable-preview1',
'--experimental-wasm-bigint',
__filename,
'wasi-child',