From 71ca6d7d6a3cd3e6e553350abbc40f0a331e964c Mon Sep 17 00:00:00 2001 From: Kohei Ueno Date: Fri, 15 Jul 2022 00:24:19 +0900 Subject: [PATCH] util: add `maxArrayLength` option to Set and Map PR-URL: https://github.com/nodejs/node/pull/43576 Reviewed-By: Antoine du Hamel Reviewed-By: Ruben Bridgewater Reviewed-By: Luigi Pinca --- doc/api/util.md | 8 ++++++-- lib/internal/util/inspect.js | 31 ++++++++++++++++++++++++------ test/parallel/test-util-inspect.js | 3 +++ 3 files changed, 34 insertions(+), 8 deletions(-) diff --git a/doc/api/util.md b/doc/api/util.md index 61fe92c694bc7e..4f5f10957a8192 100644 --- a/doc/api/util.md +++ b/doc/api/util.md @@ -485,6 +485,9 @@ stream.write('With ES6');