Skip to content

Commit 4a07a62

Browse files
dnlupBridgeAR
authored andcommitted
process: remove usage of require('util') in per_thread.js
Use `require('internal/util/inspect').format` instead of `require('util').format`. PR-URL: #26817 Refs: #26546 Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]>
1 parent e112fb4 commit 4a07a62

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/internal/process/per_thread.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ const {
1515
ERR_UNKNOWN_SIGNAL
1616
}
1717
} = require('internal/errors');
18-
const util = require('util');
18+
const format = require('internal/util/inspect').format;
1919
const constants = internalBinding('constants').os.signals;
2020

2121
function assert(x, msg) {
@@ -32,7 +32,7 @@ function wrapProcessMethods(binding) {
3232
} = binding;
3333

3434
function _rawDebug(...args) {
35-
binding._rawDebug(util.format.apply(null, args));
35+
binding._rawDebug(format.apply(null, args));
3636
}
3737

3838
// Create the argument array that will be passed to the native function.

0 commit comments

Comments
 (0)