lib: refactor deprecated function in readline.js
PR-URL: https://github.com/nodejs/node/pull/26494 Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
This commit is contained in:
parent
1706a2d7d8
commit
b7568e1b27
@ -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');
|
||||
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user