Skip to content

Commit

Permalink
process: remove usage of require('util') in per_thread.js
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
dnlup authored and targos committed Mar 27, 2019
1 parent 5e06c3b commit dd2f2cc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/internal/process/per_thread.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -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.
Expand Down

0 comments on commit dd2f2cc

Please sign in to comment.