File tree 10 files changed +16
-11
lines changed
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
230
230
231
231
Enable experimental ES Module support in the ` vm ` module.
232
232
233
- ### ` --experimental-wasi-unstable-preview0 `
233
+ ### ` --experimental-wasi-unstable-preview1 `
234
234
<!-- YAML
235
235
added: 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`
236
241
-->
237
242
238
243
Enable experimental WebAssembly System Interface (WASI) support.
@@ -1073,7 +1078,7 @@ Node.js options that are allowed are:
1073
1078
* ` --experimental-resolve-self `
1074
1079
* ` --experimental-specifier-resolution `
1075
1080
* ` --experimental-vm-modules `
1076
- * ` --experimental-wasi-unstable-preview0 `
1081
+ * ` --experimental-wasi-unstable-preview1 `
1077
1082
* ` --experimental-wasm-modules `
1078
1083
* ` --force-context-aware `
1079
1084
* ` --force-fips `
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ const importObject = { wasi_snapshot_preview1: wasi.wasiImport };
29
29
})();
30
30
```
31
31
32
- The ` --experimental-wasi-unstable-preview0 ` and ` --experimental-wasm-bigint `
32
+ The ` --experimental-wasi-unstable-preview1 ` and ` --experimental-wasm-bigint `
33
33
CLI arguments are needed for the previous example to run.
34
34
35
35
## 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.
141
141
.It Fl -experimental-vm-modules
142
142
Enable experimental ES module support in VM module.
143
143
.
144
- .It Fl -experimental-wasi-unstable-preview0
144
+ .It Fl -experimental-wasi-unstable-preview1
145
145
Enable experimental WebAssembly System Interface support.
146
146
.
147
147
.It Fl -experimental-wasm-modules
Original file line number Diff line number Diff line change @@ -404,7 +404,7 @@ function initializeWASI() {
404
404
const { NativeModule } = require ( 'internal/bootstrap/loaders' ) ;
405
405
const mod = NativeModule . map . get ( 'wasi' ) ;
406
406
mod . canBeRequiredByUsers =
407
- getOptionValue ( '--experimental-wasi-unstable-preview0 ' ) ;
407
+ getOptionValue ( '--experimental-wasi-unstable-preview1 ' ) ;
408
408
}
409
409
410
410
function initializeCJSLoader ( ) {
Original file line number Diff line number Diff line change @@ -361,7 +361,7 @@ EnvironmentOptionsParser::EnvironmentOptionsParser() {
361
361
&EnvironmentOptions::experimental_report,
362
362
kAllowedInEnvironment );
363
363
#endif // NODE_REPORT
364
- AddOption (" --experimental-wasi-unstable-preview0 " ,
364
+ AddOption (" --experimental-wasi-unstable-preview1 " ,
365
365
" experimental WASI support" ,
366
366
&EnvironmentOptions::experimental_wasi,
367
367
kAllowedInEnvironment );
Original file line number Diff line number Diff line change 1
- // Flags: --experimental-wasi-unstable-preview0
1
+ // Flags: --experimental-wasi-unstable-preview1
2
2
'use strict' ;
3
3
4
4
const common = require ( '../common' ) ;
Original file line number Diff line number Diff line change 1
1
'use strict' ;
2
2
3
- // Flags: --experimental-wasi-unstable-preview0
3
+ // Flags: --experimental-wasi-unstable-preview1
4
4
5
5
require ( '../common' ) ;
6
6
const 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
2
2
'use strict' ;
3
3
4
4
const common = require ( '../common' ) ;
Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ if (process.argv[2] === 'wasi-child') {
59
59
console . log ( 'executing' , options . test ) ;
60
60
const opts = { env : { ...process . env , NODE_DEBUG_NATIVE : 'wasi' } } ;
61
61
const child = cp . spawnSync ( process . execPath , [
62
- '--experimental-wasi-unstable-preview0 ' ,
62
+ '--experimental-wasi-unstable-preview1 ' ,
63
63
'--experimental-wasm-bigint' ,
64
64
__filename ,
65
65
'wasi-child' ,
Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ if (process.argv[2] === 'wasi-child') {
44
44
opts . input = options . stdin ;
45
45
46
46
const child = cp . spawnSync ( process . execPath , [
47
- '--experimental-wasi-unstable-preview0 ' ,
47
+ '--experimental-wasi-unstable-preview1 ' ,
48
48
'--experimental-wasm-bigint' ,
49
49
__filename ,
50
50
'wasi-child' ,
You can’t perform that action at this time.
0 commit comments