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 <targos@protonmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
  • Loading branch information
dnlup authored and BridgeAR committed Mar 24, 2019
1 parent e112fb4 commit 4a07a62
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 4a07a62

Please sign in to comment.