From 885de1ba70094905ccce4825e7875fc0ec5740b2 Mon Sep 17 00:00:00 2001 From: Ruben Bridgewater Date: Wed, 12 Dec 2018 05:59:18 +0100 Subject: [PATCH] util: remove todo MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Most people are going to use the existing option and switching the name now comes with a cost which does not seem to justify the improvement. PR-URL: https://github.com/nodejs/node/pull/24982 Reviewed-By: Michaƫl Zasso Reviewed-By: Luigi Pinca Reviewed-By: Anto Aravinth Reviewed-By: Rich Trott --- doc/api/util.md | 4 ---- lib/internal/util/inspect.js | 2 -- 2 files changed, 6 deletions(-) diff --git a/doc/api/util.md b/doc/api/util.md index 0b9e47739487e9..22859dfdfecd39 100644 --- a/doc/api/util.md +++ b/doc/api/util.md @@ -449,10 +449,6 @@ changes: * `showProxy` {boolean} If `true`, then objects and functions that are `Proxy` objects will be introspected to show their `target` and `handler` objects. **Default:** `false`. - * `maxArrayLength` {integer} Specifies the maximum number of `Array`, [`TypedArray`][], [`WeakMap`][] and [`WeakSet`][] elements to include when formatting. Set to `null` or `Infinity` to show all elements. Set to `0` or diff --git a/lib/internal/util/inspect.js b/lib/internal/util/inspect.js index f7e5507882f679..4e8e4d47302b08 100644 --- a/lib/internal/util/inspect.js +++ b/lib/internal/util/inspect.js @@ -163,8 +163,6 @@ function inspect(value, opts) { colors: inspectDefaultOptions.colors, customInspect: inspectDefaultOptions.customInspect, showProxy: inspectDefaultOptions.showProxy, - // TODO(BridgeAR): Deprecate `maxArrayLength` and replace it with - // `maxEntries`. maxArrayLength: inspectDefaultOptions.maxArrayLength, breakLength: inspectDefaultOptions.breakLength, compact: inspectDefaultOptions.compact,