Bug 1027246 - use "return" instead of "throw new Task.Result()" when switching to ES6 generators. r=nfitzgerald

This commit is contained in:
Ian Moody 2015-02-08 14:48:00 +01:00
Родитель a7841cffc8
Коммит 1fe4861d3a
2 изменённых файлов: 4 добавлений и 4 удалений

Просмотреть файл

@ -122,7 +122,7 @@ var LocalStore = Class({
let resource = this._forPath(path, info);
parent.addChild(resource);
throw new Task.Result(resource);
return resource;
}.bind(this));
},

Просмотреть файл

@ -116,7 +116,7 @@ let StyleSheetsActor = exports.StyleSheetsActor = protocol.ActorClass({
}
}
}
throw new Task.Result(actors);
return actors;
}.bind(this));
},
@ -142,7 +142,7 @@ let StyleSheetsActor = exports.StyleSheetsActor = protocol.ActorClass({
let imports = yield this._getImported(actor);
actors = actors.concat(imports);
}
throw new Task.Result(actors);
return actors;
}.bind(this));
},
@ -180,7 +180,7 @@ let StyleSheetsActor = exports.StyleSheetsActor = protocol.ActorClass({
}
}
throw new Task.Result(imported);
return imported;
}.bind(this));
},