Browse Source

util: delete unused argument 'depth'

In lib/util.js, Line 1056, there is a 'depth' argument that is unused
for 'process.versions[exports.inspect.custom]', so delete it.

PR-URL: https://github.com/nodejs/node/pull/14267
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Reviewed-By: Refael Ackermann <refack@gmail.com>
v6
kadoufall 8 years ago
committed by Rich Trott
parent
commit
d4402e7111
  1. 2
      lib/util.js

2
lib/util.js

@ -1053,7 +1053,7 @@ exports._exceptionWithHostPort = function(err,
// process.versions needs a custom function as some values are lazy-evaluated. // process.versions needs a custom function as some values are lazy-evaluated.
process.versions[exports.inspect.custom] = process.versions[exports.inspect.custom] =
(depth) => exports.format(JSON.parse(JSON.stringify(process.versions))); () => exports.format(JSON.parse(JSON.stringify(process.versions)));
exports.promisify = internalUtil.promisify; exports.promisify = internalUtil.promisify;

Loading…
Cancel
Save