From dd2f2cca001eb78fd9d147e74e183de75f3e411e Mon Sep 17 00:00:00 2001
From: dnlup <dwon.dnl@gmail.com>
Date: Wed, 20 Mar 2019 14:49:04 +0100
Subject: [PATCH] process: remove usage of require('util') in `per_thread.js`
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

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>
---
 lib/internal/process/per_thread.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/internal/process/per_thread.js b/lib/internal/process/per_thread.js
index 85772aafd8cee9..37b9e31167a336 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.