diff options
author | Matt A. Tobin <email@mattatobin.com> | 2018-04-22 11:16:08 -0400 |
---|---|---|
committer | Matt A. Tobin <email@mattatobin.com> | 2018-04-22 11:16:08 -0400 |
commit | c30ebdac27c93b57e368c69e9c13055a17229992 (patch) | |
tree | bc00c088d6cbffe3ecb81cc776ce2df25ff059e1 /toolkit/mozapps/extensions/internal | |
parent | c74754d23864569956853c1f77a37275842b0fd0 (diff) | |
download | UXP-c30ebdac27c93b57e368c69e9c13055a17229992.tar UXP-c30ebdac27c93b57e368c69e9c13055a17229992.tar.gz UXP-c30ebdac27c93b57e368c69e9c13055a17229992.tar.lz UXP-c30ebdac27c93b57e368c69e9c13055a17229992.tar.xz UXP-c30ebdac27c93b57e368c69e9c13055a17229992.zip |
Fix for loops in AddonRepository_SQLiteMigrator.jsm (SyntaxError: missing ] after element list)
Diffstat (limited to 'toolkit/mozapps/extensions/internal')
-rw-r--r-- | toolkit/mozapps/extensions/internal/AddonRepository_SQLiteMigrator.jsm | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/toolkit/mozapps/extensions/internal/AddonRepository_SQLiteMigrator.jsm b/toolkit/mozapps/extensions/internal/AddonRepository_SQLiteMigrator.jsm index 11944ddf5..66147b9aa 100644 --- a/toolkit/mozapps/extensions/internal/AddonRepository_SQLiteMigrator.jsm +++ b/toolkit/mozapps/extensions/internal/AddonRepository_SQLiteMigrator.jsm @@ -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); }); |