From 0d18a8c232719a9b56e38460c3d37acda7546cda Mon Sep 17 00:00:00 2001 From: Rich Trott Date: Mon, 27 Dec 2021 14:36:52 -0800 Subject: [PATCH] doc: revise frozen-intrinsics text MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR-URL: https://github.com/nodejs/node/pull/41342 Reviewed-By: Tobias Nießen Reviewed-By: Antoine du Hamel Reviewed-By: Franziska Hinkelmann Reviewed-By: Luigi Pinca --- doc/api/cli.md | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/doc/api/cli.md b/doc/api/cli.md index 70a22ad50387fb..1c04da298b3760 100644 --- a/doc/api/cli.md +++ b/doc/api/cli.md @@ -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`