[repl] add error handling for async scope fetching
This commit is contained in:
parent
69c35f990f
commit
57388d8b2e
@ -405,7 +405,9 @@ REPLServer.prototype.complete = function(line, callback) {
|
||||
completionGroupsLoaded();
|
||||
} else {
|
||||
this.eval('.scope', this.context, 'repl', function(err, globals) {
|
||||
if (Array.isArray(globals[0])) {
|
||||
if (err || !globals) {
|
||||
addStandardGlobals();
|
||||
} else if (Array.isArray(globals[0])) {
|
||||
// Add grouped globals
|
||||
globals.forEach(function(group) {
|
||||
completionGroups.push(group);
|
||||
|
Loading…
x
Reference in New Issue
Block a user