From 117e99121cac48d022a7841f871fdb1f64fbe3f4 Mon Sep 17 00:00:00 2001 From: Ruben Bridgewater Date: Tue, 4 Dec 2018 22:58:56 +0100 Subject: [PATCH] util: add inspection getter option Currently it is not possible to inspect getters. To prevent any side effects this should not become a default but under lots of circumstances it would still be useful to inspect getters. This way it is possible to actively opt into inspecting those. PR-URL: https://github.com/nodejs/node/pull/24852 Reviewed-By: Jeremiah Senkpiel Reviewed-By: Anna Henningsen --- doc/api/util.md | 8 ++++++++ lib/internal/util/inspect.js | 32 ++++++++++++++++++++++++----- test/parallel/test-util-inspect.js | 33 ++++++++++++++++++++++++++++++ 3 files changed, 68 insertions(+), 5 deletions(-) diff --git a/doc/api/util.md b/doc/api/util.md index ce8a59ac174e99..e0307ef964d960 100644 --- a/doc/api/util.md +++ b/doc/api/util.md @@ -375,6 +375,9 @@ stream.write('With ES6');