Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntoine du Hamel <duhamelantoine1995@gmail.com>2022-02-23 01:25:59 +0300
committerAntoine du Hamel <duhamelantoine1995@gmail.com>2022-09-17 16:54:33 +0300
commit6de2673a9f9420e87066422375278d0156079889 (patch)
treea7e4648ce93e9093d31a1292692a86585117c129 /doc/api/cli.md
parent572d55645c0bd446e7f88e0f2120e5a115257234 (diff)
lib: enable global WebCrypto by default
Enables `--experimental-global-webcrypto` by default, and ensures that the classic `node:crypto` core module is still available in `--eval` or `--print` contexts. PR-URL: https://github.com/nodejs/node/pull/42083 Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Filip Skokan <panva.ip@gmail.com> Reviewed-By: Michaƫl Zasso <targos@protonmail.com>
Diffstat (limited to 'doc/api/cli.md')
-rw-r--r--doc/api/cli.md20
1 files changed, 9 insertions, 11 deletions
diff --git a/doc/api/cli.md b/doc/api/cli.md
index 18daed918da..b1b0103cfdd 100644
--- a/doc/api/cli.md
+++ b/doc/api/cli.md
@@ -351,16 +351,6 @@ added:
Expose the [CustomEvent Web API][] on the global scope.
-### `--experimental-global-webcrypto`
-
-<!-- YAML
-added:
- - v17.6.0
- - v16.15.0
--->
-
-Expose the [Web Crypto API][] on the global scope.
-
### `--experimental-import-meta-resolve`
<!-- YAML
@@ -413,6 +403,14 @@ added: v18.0.0
Disable experimental support for the [Fetch API][].
+### `--no-experimental-global-webcrypto`
+
+<!-- YAML
+added: REPLACEME
+-->
+
+Disable exposition of [Web Crypto API][] on the global scope.
+
### `--no-experimental-repl-await`
<!-- YAML
@@ -1839,7 +1837,6 @@ Node.js options that are allowed are:
* `--enable-source-maps`
* `--experimental-abortcontroller`
* `--experimental-global-customevent`
-* `--experimental-global-webcrypto`
* `--experimental-import-meta-resolve`
* `--experimental-json-modules`
* `--experimental-loader`
@@ -1872,6 +1869,7 @@ Node.js options that are allowed are:
* `--no-addons`
* `--no-deprecation`
* `--no-experimental-fetch`
+* `--no-experimental-global-webcrypto`
* `--no-experimental-repl-await`
* `--no-extra-info-on-fatal-exception`
* `--no-force-async-hooks-checks`