File tree Expand file tree Collapse file tree 10 files changed +16
-11
lines changed Expand file tree Collapse file tree 10 files changed +16
-11
lines changed Original file line number Diff line number Diff line change @@ -230,9 +230,14 @@ added: v9.6.0
230230
231231Enable experimental ES Module support in the ` vm ` module.
232232
233- ### ` --experimental-wasi-unstable-preview0 `
233+ ### ` --experimental-wasi-unstable-preview1 `
234234<!-- YAML
235235added: v13.3.0
236+ changes:
237+ - version: REPLACEME
238+ pr-url: https://github.com/nodejs/node/pull/30980
239+ description: changed from `--experimental-wasi-unstable-preview0` to
240+ `--experimental-wasi-unstable-preview1`
236241-->
237242
238243Enable experimental WebAssembly System Interface (WASI) support.
@@ -1073,7 +1078,7 @@ Node.js options that are allowed are:
10731078* ` --experimental-resolve-self `
10741079* ` --experimental-specifier-resolution `
10751080* ` --experimental-vm-modules `
1076- * ` --experimental-wasi-unstable-preview0 `
1081+ * ` --experimental-wasi-unstable-preview1 `
10771082* ` --experimental-wasm-modules `
10781083* ` --force-context-aware `
10791084* ` --force-fips `
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ const importObject = { wasi_snapshot_preview1: wasi.wasiImport };
2929})();
3030```
3131
32- The ` --experimental-wasi-unstable-preview0 ` and ` --experimental-wasm-bigint `
32+ The ` --experimental-wasi-unstable-preview1 ` and ` --experimental-wasm-bigint `
3333CLI arguments are needed for the previous example to run.
3434
3535## Class: WASI
Original file line number Diff line number Diff line change @@ -141,7 +141,7 @@ Enable experimental support for a package to load itself.
141141.It Fl -experimental-vm-modules
142142Enable experimental ES module support in VM module.
143143.
144- .It Fl -experimental-wasi-unstable-preview0
144+ .It Fl -experimental-wasi-unstable-preview1
145145Enable experimental WebAssembly System Interface support.
146146.
147147.It Fl -experimental-wasm-modules
Original file line number Diff line number Diff line change @@ -404,7 +404,7 @@ function initializeWASI() {
404404 const { NativeModule } = require ( 'internal/bootstrap/loaders' ) ;
405405 const mod = NativeModule . map . get ( 'wasi' ) ;
406406 mod . canBeRequiredByUsers =
407- getOptionValue ( '--experimental-wasi-unstable-preview0 ' ) ;
407+ getOptionValue ( '--experimental-wasi-unstable-preview1 ' ) ;
408408}
409409
410410function initializeCJSLoader ( ) {
Original file line number Diff line number Diff line change @@ -361,7 +361,7 @@ EnvironmentOptionsParser::EnvironmentOptionsParser() {
361361 &EnvironmentOptions::experimental_report,
362362 kAllowedInEnvironment );
363363#endif // NODE_REPORT
364- AddOption (" --experimental-wasi-unstable-preview0 " ,
364+ AddOption (" --experimental-wasi-unstable-preview1 " ,
365365 " experimental WASI support" ,
366366 &EnvironmentOptions::experimental_wasi,
367367 kAllowedInEnvironment );
Original file line number Diff line number Diff line change 1- // Flags: --experimental-wasi-unstable-preview0
1+ // Flags: --experimental-wasi-unstable-preview1
22'use strict' ;
33
44const common = require ( '../common' ) ;
Original file line number Diff line number Diff line change 11'use strict' ;
22
3- // Flags: --experimental-wasi-unstable-preview0
3+ // Flags: --experimental-wasi-unstable-preview1
44
55require ( '../common' ) ;
66const assert = require ( 'assert' ) ;
Original file line number Diff line number Diff line change 1- // Flags: --experimental-wasi-unstable-preview0
1+ // Flags: --experimental-wasi-unstable-preview1
22'use strict' ;
33
44const common = require ( '../common' ) ;
Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ if (process.argv[2] === 'wasi-child') {
5959 console . log ( 'executing' , options . test ) ;
6060 const opts = { env : { ...process . env , NODE_DEBUG_NATIVE : 'wasi' } } ;
6161 const child = cp . spawnSync ( process . execPath , [
62- '--experimental-wasi-unstable-preview0 ' ,
62+ '--experimental-wasi-unstable-preview1 ' ,
6363 '--experimental-wasm-bigint' ,
6464 __filename ,
6565 'wasi-child' ,
Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ if (process.argv[2] === 'wasi-child') {
4444 opts . input = options . stdin ;
4545
4646 const child = cp . spawnSync ( process . execPath , [
47- '--experimental-wasi-unstable-preview0 ' ,
47+ '--experimental-wasi-unstable-preview1 ' ,
4848 '--experimental-wasm-bigint' ,
4949 __filename ,
5050 'wasi-child' ,
You can’t perform that action at this time.
0 commit comments