From 7b674697d8005c29391ebaaf562eb4d92ed9b129 Mon Sep 17 00:00:00 2001 From: Ruben Bridgewater Date: Tue, 11 Dec 2018 21:28:45 +0100 Subject: 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 Reviewed-By: Anna Henningsen Reviewed-By: Rich Trott --- doc/api/util.md | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'doc/api/util.md') 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');