summaryrefslogtreecommitdiff
path: root/doc/api/cli.md
diff options
context:
space:
mode:
authorGuy Bedford <guybedford@gmail.com>2019-06-16 23:00:17 +0200
committerGuy Bedford <guybedford@gmail.com>2019-06-22 23:17:44 +0200
commit554ffa34320ebfe62e6eefd4607483866362efd3 (patch)
tree823c41b09dc263d8a6da2deb030fd54abe9db636 /doc/api/cli.md
parent3fd54510d0e2da2b14415d2a210eb5dbed20df94 (diff)
downloadandroid-node-v8-554ffa34320ebfe62e6eefd4607483866362efd3.tar.gz
android-node-v8-554ffa34320ebfe62e6eefd4607483866362efd3.tar.bz2
android-node-v8-554ffa34320ebfe62e6eefd4607483866362efd3.zip
bootstrap: --frozen-intrinsics override problem workaround
PR-URL: https://github.com/nodejs/node/pull/28254 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'doc/api/cli.md')
-rw-r--r--doc/api/cli.md39
1 files changed, 1 insertions, 38 deletions
diff --git a/doc/api/cli.md b/doc/api/cli.md
index 4bf6a9473a..52270d69c5 100644
--- a/doc/api/cli.md
+++ b/doc/api/cli.md
@@ -209,44 +209,7 @@ 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 breakage is highly likely with this flag**, since redefining any
-builtin properties on a subclass will throw in strict mode due to the ECMA-262
-issue https://github.com/tc39/ecma262/pull/1307. This flag may still change
-or be removed in the future.
-
-To avoid these cases, any builtin function overrides should be defined upfront:
-
-```js
-const o = {};
-// THROWS: Cannot assign read only property 'toString' of object
-o.toString = () => 'string';
-
-class X {
- constructor() {
- this.toString = () => 'string';
- }
-}
-// THROWS: Cannot assign read only property 'toString' of object
-new X();
-```
-
-```js
-// OK
-const o = { toString: () => 'string' };
-
-class X {
- toString = undefined;
- constructor() {
- this.toString = () => 'string';
- }
-}
-// OK
-new X();
-```
-
-
+reference. Code may break under this flag.
### `--heapsnapshot-signal=signal`
<!-- YAML