Fix for loops in AddonRepository_SQLiteMigrator.jsm (SyntaxError: missing ] after element list)

This commit is contained in:
NTD 2018-04-22 11:16:08 -04:00 committed by Roy Tam
commit a9cc6150e6

View file

@ -60,7 +60,11 @@ this.AddonRepository_SQLiteMigrator = {
this._retrieveStoredData((results) => {
this._closeConnection();
let resultArray = [addon for ([,addon] of Iterator(results))];
// Tycho: let resultArray = [addon for ([,addon] of Iterator(results))];
let resultArray = [];
for (let [,addon] of Iterator(results)) {
resultArray.push(addon);
}
logger.debug(resultArray.length + " addons imported.")
aCallback(resultArray);
});