From ef4e8d39457ab6a1e62918e89982405e68e3ff57 Mon Sep 17 00:00:00 2001 From: Ruben Bridgewater Date: Mon, 14 May 2018 19:50:45 +0200 Subject: [PATCH 1/2] util: recover from maximum call stack size Using util.inspect should still return values in case the maximum call stack size is reached. This is important to inspect linked lists and similar. --- doc/api/util.md | 9 +++++++-- lib/util.js | 22 ++++++++++++++++++++-- test/parallel/test-util-inspect.js | 21 +++++++++++++++++---- 3 files changed, 44 insertions(+), 8 deletions(-) diff --git a/doc/api/util.md b/doc/api/util.md index db0790f7ea281b..4a6988c87d0f93 100644 --- a/doc/api/util.md +++ b/doc/api/util.md @@ -360,6 +360,10 @@ stream.write('With ES6');