Skip to content

Commit

Permalink
lib: refactor deprecated function in readline.js
Browse files Browse the repository at this point in the history
PR-URL: #26494
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
  • Loading branch information
gengjiawen authored and BridgeAR committed Mar 13, 2019
1 parent 1706a2d commit b7568e1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/readline.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const {
ERR_INVALID_OPT_VALUE
} = require('internal/errors').codes;
const { validateString } = require('internal/validators');
const { debug } = require('util');
const { inspect } = require('util');
const { emitExperimentalWarning } = require('internal/util');
const { Buffer } = require('buffer');
const EventEmitter = require('events');
Expand Down Expand Up @@ -484,7 +484,7 @@ Interface.prototype._tabComplete = function(lastKeypressWasTab) {
self.resume();

if (err) {
debug('tab completion error %j', err);
self._writeToOutput(`tab completion error ${inspect(err)}`);
return;
}

Expand Down

0 comments on commit b7568e1

Please sign in to comment.