diff options
author | Himself65 <himself65@outlook.com> | 2022-04-04 11:24:17 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-04 11:24:17 +0300 |
commit | e6a7300a10eb7de8a79e1ace26631fb611b64bfe (patch) | |
tree | 8427fa1cf81472810059de13b61549e5636d8f17 /doc/api/errors.md | |
parent | df20947e69dcfe73f0df1ff33ac350748173742e (diff) |
process: disallow some uses of Object.defineProperty() on process.env
Disallow the use of Object.defineProperty() to hide entries in
process.env or make them immutable.
PR-URL: https://github.com/nodejs/node/pull/28006
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Diffstat (limited to 'doc/api/errors.md')
-rw-r--r-- | doc/api/errors.md | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/doc/api/errors.md b/doc/api/errors.md index e25561147d5..a11a94981fe 100644 --- a/doc/api/errors.md +++ b/doc/api/errors.md @@ -1921,6 +1921,13 @@ valid. The imported module string is an invalid URL, package name, or package subpath specifier. +<a id="ERR_INVALID_OBJECT_DEFINE_PROPERTY"></a> + +### `ERR_INVALID_OBJECT_DEFINE_PROPERTY` + +An error occurred while setting an invalid attribute on the property of +an object. + <a id="ERR_INVALID_PACKAGE_CONFIG"></a> ### `ERR_INVALID_PACKAGE_CONFIG` |