mirror of
https://github.com/nodejs/node.git
synced 2026-11-30 11:55:44 -05:00
repl: remove usage of require('util') in repl/history
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 <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>
This commit is contained in:
1 parent
79d6895484
commit
04e9d5a448
1 file changed
+1
-2
@@ -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.
|
||||
|
||||
Reference in new issue
Block a user