From 04e9d5a44843d507bf2bea11f97bd70ee9f0c4d3 Mon Sep 17 00:00:00 2001 From: dnlup Date: Wed, 20 Mar 2019 15:17:02 +0100 Subject: [PATCH] repl: remove usage of require('util') in `repl/history` MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Use `require('internal/util/debuglog').debuglog` instead of `require('util').debuglog`. Refs: https://github.com/nodejs/node/issues/26546 PR-URL: https://github.com/nodejs/node/pull/26819 Reviewed-By: Michaƫl Zasso Reviewed-By: James M Snell Reviewed-By: Yongsheng Zhang Reviewed-By: Ruben Bridgewater --- lib/internal/repl/history.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/internal/repl/history.js b/lib/internal/repl/history.js index a0ae07441eb912..9f41b18b676aa7 100644 --- a/lib/internal/repl/history.js +++ b/lib/internal/repl/history.js @@ -4,8 +4,7 @@ const { Interface } = require('readline'); const path = require('path'); const fs = require('fs'); const os = require('os'); -const util = require('util'); -const debug = util.debuglog('repl'); +const debug = require('internal/util/debuglog').debuglog('repl'); // XXX(chrisdickinson): The 15ms debounce value is somewhat arbitrary. // The debounce is to guard against code pasted into the REPL.