mirror of https://github.com/nodejs/node.git
process: remove usage of require('util') in `per_thread.js`
Use `require('internal/util/inspect').format` instead of `require('util').format`. PR-URL: https://github.com/nodejs/node/pull/26817 Refs: https://github.com/nodejs/node/issues/26546 Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
This commit is contained in:
parent
e112fb4c22
commit
4a07a62d04
|
@ -15,7 +15,7 @@ const {
|
|||
ERR_UNKNOWN_SIGNAL
|
||||
}
|
||||
} = require('internal/errors');
|
||||
const util = require('util');
|
||||
const format = require('internal/util/inspect').format;
|
||||
const constants = internalBinding('constants').os.signals;
|
||||
|
||||
function assert(x, msg) {
|
||||
|
@ -32,7 +32,7 @@ function wrapProcessMethods(binding) {
|
|||
} = binding;
|
||||
|
||||
function _rawDebug(...args) {
|
||||
binding._rawDebug(util.format.apply(null, args));
|
||||
binding._rawDebug(format.apply(null, args));
|
||||
}
|
||||
|
||||
// Create the argument array that will be passed to the native function.
|
||||
|
|
Loading…
Reference in New Issue