diff --git a/lib/internal/process/per_thread.js b/lib/internal/process/per_thread.js index 7a3bee3098e8e9..5706d560baeb9c 100644 --- a/lib/internal/process/per_thread.js +++ b/lib/internal/process/per_thread.js @@ -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.