doc: revise frozen-intrinsics text

PR-URL: https://github.com/nodejs/node/pull/41342
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
This commit is contained in:
Rich Trott committed 2022-01-01 22:19:44 -08:00
1 parent a4795ada8b
commit 231ec0adf2
1 file changed
+4 -5
+4 -5
View File
@@ -371,12 +371,11 @@ added: v11.12.0
Enable experimental frozen intrinsics like `Array` and `Object`.
Support is currently only provided for the root context and no guarantees are
currently provided that `global.Array` is indeed the default intrinsic
reference. Code may break under this flag.
Only the root context is supported. There is no guarantee that
`globalThis.Array` is indeed the default intrinsic reference. Code may break
under this flag.
`--require` runs prior to freezing intrinsics in order to allow polyfills to
be added.
To allow polyfills to be added, `--require` runs before freezing intrinsics.
### `--heapsnapshot-near-heap-limit=max_count`