зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1027246 - use "return" instead of "throw new Task.Result()" when switching to ES6 generators. r=nfitzgerald
This commit is contained in:
Родитель
a7841cffc8
Коммит
1fe4861d3a
|
@ -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));
|
||||
},
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче