Skip to content

Commit 5205902

Browse files
BridgeARtargos
authored andcommitted
util: remove outdated comment
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]>
1 parent 099c9ce commit 5205902

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

lib/internal/util/inspect.js

-1
Original file line numberDiff line numberDiff line change
@@ -866,7 +866,6 @@ function getFunctionBase(value, constructor, tag) {
866866
}
867867

868868
function formatError(err, constructor, tag, ctx) {
869-
// TODO(BridgeAR): Always show the error code if present.
870869
let stack = err.stack || ErrorPrototype.toString(err);
871870

872871
// A stack trace may contain arbitrary data. Only manipulate the output

0 commit comments

Comments
 (0)