diff --git a/lib/repl.js b/lib/repl.js index 7d2a77a6ce2..40496559bf4 100644 --- a/lib/repl.js +++ b/lib/repl.js @@ -624,7 +624,7 @@ REPLServer.prototype.complete = function(line, callback) { completionGroupsLoaded(); } else { this.eval('.scope', this.context, 'repl', function(err, globals) { - if (err || !globals || !Array.isArray(globals)) { + if (err || !Array.isArray(globals)) { addStandardGlobals(completionGroups, filter); } else if (Array.isArray(globals[0])) { // Add grouped globals