| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent b1bcdce commit 58afcc2
17 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -466,6 +466,10 @@ added: | |||
| 466 | 466 | - v13.3.0 | |
| 467 | 467 | - v12.16.0 | |
| 468 | 468 | changes: | |
| 469 | + - version: REPLACEME | ||
| 470 | + pr-url: https://github.com/nodejs/node/pull/47286 | ||
| 471 | + description: This option is no longer required as WASI is | ||
| 472 | + enabled by default, but can still be passed. | ||
| 469 | 473 | - version: v13.6.0 | |
| 470 | 474 | pr-url: https://github.com/nodejs/node/pull/30980 | |
| 471 | 475 | description: changed from `--experimental-wasi-unstable-preview0` to | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -103,9 +103,6 @@ Use [wabt](https://github.com/WebAssembly/wabt) to compile `.wat` to `.wasm` | |||
| 103 | 103 | $ wat2wasm demo.wat | |
| 104 | 104 | ``` | |
| 105 | 105 | ||
| 106 | - The `--experimental-wasi-unstable-preview1` CLI argument is needed for this | ||
| 107 | - example to run. | ||
| 108 | - | ||
| 109 | 106 | ## Class: `WASI` | |
| 110 | 107 | ||
| 111 | 108 | <!-- YAML | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -179,7 +179,8 @@ Select extension resolution algorithm for ES Modules; either 'explicit' (default | |||
| 179 | 179 | Enable experimental ES module support in VM module. | |
| 180 | 180 | . | |
| 181 | 181 | .It Fl -experimental-wasi-unstable-preview1 | |
| 182 | - Enable experimental WebAssembly System Interface support. | ||
| 182 | + Enable experimental WebAssembly System Interface support. This | ||
| 183 | + flag is no longer required as WASI is enabled by default. | ||
| 183 | 184 | . | |
| 184 | 185 | .It Fl -experimental-wasm-modules | |
| 185 | 186 | Enable experimental WebAssembly module support. | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -70,7 +70,6 @@ function prepareExecution(options) { | |||
| 70 | 70 | initializeReport(); | |
| 71 | 71 | initializeSourceMapsHandlers(); | |
| 72 | 72 | initializeDeprecations(); | |
| 73 | - initializeWASI(); | ||
| 74 | 73 | require('internal/dns/utils').initializeDns(); | |
| 75 | 74 | ||
| 76 | 75 | if (isMainThread) { | |
@@ -532,13 +531,6 @@ function readPolicyFromDisk() { | |||
| 532 | 531 | } | |
| 533 | 532 | } | |
| 534 | 533 | ||
| 535 | - function initializeWASI() { | ||
| 536 | - const { BuiltinModule } = require('internal/bootstrap/loaders'); | ||
| 537 | - const mod = BuiltinModule.map.get('wasi'); | ||
| 538 | - mod.canBeRequiredByUsers = | ||
| 539 | - getOptionValue('--experimental-wasi-unstable-preview1'); | ||
| 540 | - } | ||
| 541 | - | ||
| 542 | 534 | function initializeCJSLoader() { | |
| 543 | 535 | const CJSLoader = require('internal/modules/cjs/loader'); | |
| 544 | 536 | if (!getEmbedderOptions().noGlobalSearchPaths) { | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -428,10 +428,8 @@ EnvironmentOptionsParser::EnvironmentOptionsParser() { | |||
| 428 | 428 | kAllowedInEnvvar); | |
| 429 | 429 | AddOption("--experimental-worker", "", NoOp{}, kAllowedInEnvvar); | |
| 430 | 430 | AddOption("--experimental-report", "", NoOp{}, kAllowedInEnvvar); | |
| 431 | - AddOption("--experimental-wasi-unstable-preview1", | ||
| 432 | - "experimental WASI support", | ||
| 433 | - &EnvironmentOptions::experimental_wasi, | ||
| 434 | - kAllowedInEnvvar); | ||
| 431 | + AddOption( | ||
| 432 | + "--experimental-wasi-unstable-preview1", "", NoOp{}, kAllowedInEnvvar); | ||
| 435 | 433 | AddOption("--expose-internals", "", &EnvironmentOptions::expose_internals); | |
| 436 | 434 | AddOption("--frozen-intrinsics", | |
| 437 | 435 | "experimental frozen intrinsics support", | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -185,7 +185,6 @@ class EnvironmentOptions : public Options { | |||
| 185 | 185 | ||
| 186 | 186 | bool syntax_check_only = false; | |
| 187 | 187 | bool has_eval_string = false; | |
| 188 | - bool experimental_wasi = false; | ||
| 189 | 188 | std::string eval_string; | |
| 190 | 189 | bool print_eval = false; | |
| 191 | 190 | bool force_repl = false; | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,4 +1,3 @@ | |||
| 1 | - // Flags: --experimental-wasi-unstable-preview1 | ||
| 2 | 1 | 'use strict'; | |
| 3 | 2 | const common = require('../common'); | |
| 4 | 3 | const assert = require('assert'); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,4 +1,3 @@ | |||
| 1 | - // Flags: --experimental-wasi-unstable-preview1 | ||
| 2 | 1 | 'use strict'; | |
| 3 | 2 | ||
| 4 | 3 | const common = require('../common'); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -28,7 +28,6 @@ if (process.argv[2] === 'wasi-child') { | |||
| 28 | 28 | const cp = require('child_process'); | |
| 29 | 29 | ||
| 30 | 30 | const child = cp.spawnSync(process.execPath, [ | |
| 31 | - '--experimental-wasi-unstable-preview1', | ||
| 32 | 31 | __filename, | |
| 33 | 32 | 'wasi-child', | |
| 34 | 33 | ], { | |
| Back | FazBrowse Home | New Git URL |
0 commit comments