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>
This commit is contained in:
parent
242e7a8c6d
commit
d4402e7111
@ -1053,7 +1053,7 @@ exports._exceptionWithHostPort = function(err,
|
||||
|
||||
// process.versions needs a custom function as some values are lazy-evaluated.
|
||||
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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user