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:
dnlup 2019-03-20 14:49:04 +01:00 committed by Ruben Bridgewater
parent e112fb4c22
commit 4a07a62d04
No known key found for this signature in database
GPG Key ID: F07496B3EB3C1762
1 changed files with 2 additions and 2 deletions

View File

@ -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.