From d7b15c161b300da5deba0e8b1c352df6e0a65502 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. --- 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 49e3f32289a418..aee4ffd031293a 100644 --- a/doc/api/util.md +++ b/doc/api/util.md @@ -389,6 +389,9 @@ stream.write('With ES6');