Skip to content

Commit 04e9d5a

Browse files
dnluptargos
authored andcommitted
repl: remove usage of require('util') in repl/history
Use `require('internal/util/debuglog').debuglog` instead of `require('util').debuglog`. Refs: #26546 PR-URL: #26819 Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Yongsheng Zhang <zyszys98@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
1 parent 79d6895 commit 04e9d5a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/internal/repl/history.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@ const { Interface } = require('readline');
44
const path = require('path');
55
const fs = require('fs');
66
const os = require('os');
7-
const util = require('util');
8-
const debug = util.debuglog('repl');
7+
const debug = require('internal/util/debuglog').debuglog('repl');
98

109
// XXX(chrisdickinson): The 15ms debounce value is somewhat arbitrary.
1110
// The debounce is to guard against code pasted into the REPL.

0 commit comments

Comments
 (0)