diff options
author | Ruben Bridgewater <ruben@bridgewater.de> | 2018-12-11 21:28:45 +0100 |
---|---|---|
committer | Ruben Bridgewater <ruben@bridgewater.de> | 2019-02-28 17:49:13 +0100 |
commit | 7b674697d8005c29391ebaaf562eb4d92ed9b129 (patch) | |
tree | 5c222e4335b18e46d9966917135f3fbc2d8b8bd6 /doc/api/util.md | |
parent | be78266fb39214b7ab3f1d2353d358561dd8f1f8 (diff) | |
download | android-node-v8-7b674697d8005c29391ebaaf562eb4d92ed9b129.tar.gz android-node-v8-7b674697d8005c29391ebaaf562eb4d92ed9b129.tar.bz2 android-node-v8-7b674697d8005c29391ebaaf562eb4d92ed9b129.zip |
util: prevent leaking internal properties
This prevents leaking of the internal `inspect()` properties when
using a custom inspect function.
It also aligns the indentation to the way it was in v8.0.0 since
that changed unintentionally. All strings returned by the custom
inspect function will now be indented appropriately to the current
depth.
PR-URL: https://github.com/nodejs/node/pull/24971
Refs: https://github.com/nodejs/node/issues/24765
Reviewed-By: Gus Caplan <me@gus.host>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Diffstat (limited to 'doc/api/util.md')
-rw-r--r-- | doc/api/util.md | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/doc/api/util.md b/doc/api/util.md index 9db263632e..b1d4854997 100644 --- a/doc/api/util.md +++ b/doc/api/util.md @@ -388,6 +388,10 @@ stream.write('With ES6'); <!-- YAML added: v0.3.0 changes: + - version: REPLACEME + pr-url: https://github.com/nodejs/node/pull/24971 + description: Internal properties no longer appear in the context argument + of a custom inspection function. - version: v11.7.0 pr-url: https://github.com/nodejs/node/pull/25006 description: ArrayBuffers now also show their binary contents. |