Skip to content

Commit 91be64b

Browse files
dnlupZYSzys
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 <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Yongsheng Zhang <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]>
1 parent 01a1296 commit 91be64b

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)