From 32fb7d93348c9d2d70bb4450913e22c68a7e76ca Mon Sep 17 00:00:00 2001 From: Ruben Bridgewater Date: Thu, 16 May 2019 13:27:52 +0200 Subject: [PATCH] util: remove outdated comment MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It is probably not necessary to visualize the `code` property as part of the name of an error since all extra properties will be visible anyway due to https://github.com/nodejs/node/pull/272431. PR-URL: https://github.com/nodejs/node/pull/27733 Reviewed-By: James M Snell Reviewed-By: Michaƫl Zasso --- lib/internal/util/inspect.js | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/internal/util/inspect.js b/lib/internal/util/inspect.js index 791c6653a7346a..07757f3fe0b6ad 100644 --- a/lib/internal/util/inspect.js +++ b/lib/internal/util/inspect.js @@ -868,7 +868,6 @@ function getFunctionBase(value, constructor, tag) { } function formatError(err, constructor, tag, ctx) { - // TODO(BridgeAR): Always show the error code if present. let stack = err.stack || ErrorPrototype.toString(err); // A stack trace may contain arbitrary data. Only manipulate the output