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
path: root/doc
diff options
context:
space:
mode:
authorlegendecas <legendecas@gmail.com>2022-05-02 19:46:31 +0300
committerGitHub <noreply@github.com>2022-05-02 19:46:31 +0300
commite86a6383054623e5168384a83d8cd6ebfe1fb584 (patch)
tree1953d373d3f24e9b5c6f2e84217328ff213289b6 /doc
parent3bd87e1782b45fec6df7809823fdf16ec07bc4a7 (diff)
src: add initial shadow realm support
Add initial shadow realm support behind an off-by-default flag `--experimental-shadow-realm`. PR-URL: https://github.com/nodejs/node/pull/42869 Refs: https://github.com/nodejs/node/issues/42528 Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Darshan Sen <raisinten@gmail.com>
Diffstat (limited to 'doc')
-rw-r--r--doc/api/cli.md12
-rw-r--r--doc/node.13
2 files changed, 14 insertions, 1 deletions
diff --git a/doc/api/cli.md b/doc/api/cli.md
index 44ba09624b0..5bb0c3cf33d 100644
--- a/doc/api/cli.md
+++ b/doc/api/cli.md
@@ -346,10 +346,18 @@ Disable experimental support for the [Fetch API][].
<!-- YAML
added: v16.6.0
- -->
+-->
Use this flag to disable top-level await in REPL.
+### `--experimental-shadow-realm`
+
+<!-- YAML
+added: REPLACEME
+-->
+
+Use this flag to enable [ShadowRealm][] support.
+
### `--experimental-specifier-resolution=mode`
<!-- YAML
@@ -1622,6 +1630,7 @@ Node.js options that are allowed are:
* `--experimental-modules`
* `--experimental-network-imports`
* `--experimental-policy`
+* `--experimental-shadow-realm`
* `--experimental-specifier-resolution`
* `--experimental-top-level-await`
* `--experimental-vm-modules`
@@ -2017,6 +2026,7 @@ $ node --max-old-space-size=1536 index.js
[OSSL_PROVIDER-legacy]: https://www.openssl.org/docs/man3.0/man7/OSSL_PROVIDER-legacy.html
[REPL]: repl.md
[ScriptCoverage]: https://chromedevtools.github.io/devtools-protocol/tot/Profiler#type-ScriptCoverage
+[ShadowRealm]: https://github.com/tc39/proposal-shadowrealm
[Source Map]: https://sourcemaps.info/spec.html
[Subresource Integrity]: https://developer.mozilla.org/en-US/docs/Web/Security/Subresource_Integrity
[V8 JavaScript code coverage]: https://v8project.blogspot.com/2017/12/javascript-code-coverage.html
diff --git a/doc/node.1 b/doc/node.1
index 2003bc8ca79..6ac0d675834 100644
--- a/doc/node.1
+++ b/doc/node.1
@@ -156,6 +156,9 @@ Enable experimental support for loading modules using `import` over `https:`.
.It Fl -experimental-policy
Use the specified file as a security policy.
.
+.It Fl -experimental-shadow-realm
+Use this flag to enable ShadowRealm support.
+.
.It Fl -no-experimental-fetch
Disable experimental support for the Fetch API.
.