Skip to content

Commit

Permalink
doc: revise frozen-intrinsics text
Browse files Browse the repository at this point in the history
PR-URL: #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>
  • Loading branch information
Trott authored and targos committed Jan 14, 2022
1 parent 337ebfc commit 0d18a8c
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions doc/api/cli.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`

Expand Down

0 comments on commit 0d18a8c

Please sign in to comment.