Skip to content

Commit

Permalink
util: remove outdated comment
Browse files Browse the repository at this point in the history
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: #27733
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Michaël Zasso <[email protected]>
  • Loading branch information
BridgeAR authored and targos committed May 20, 2019
1 parent 099c9ce commit 5205902
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion lib/internal/util/inspect.js
Original file line number Diff line number Diff line change
Expand Up @@ -866,7 +866,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
Expand Down

0 comments on commit 5205902

Please sign in to comment.