diff --git a/lib/readline.js b/lib/readline.js index 0590b1c299b623..710fc77be66d84 100644 --- a/lib/readline.js +++ b/lib/readline.js @@ -449,8 +449,8 @@ Interface.prototype._tabComplete = function(lastKeypressWasTab) { } // If there is a common prefix to all matches, then apply that portion. - const f = completions.filter(function(e) { if (e) return e; }); - const prefix = commonPrefix(f); + var f = completions.filter(function(e) { if (e) return e; }); + var prefix = commonPrefix(f); if (prefix.length > completeOn.length) { self._insertString(prefix.slice(completeOn.length)); }