Skip to content

Commit

Permalink
repl: remove usage of require('util') in repl/history
Browse files Browse the repository at this point in the 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>
  • Loading branch information
dnlup authored and targos committed Mar 27, 2019
1 parent 79d6895 commit 04e9d5a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/internal/repl/history.js
Expand Up @@ -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.
Expand Down

0 comments on commit 04e9d5a

Please sign in to comment.