summaryrefslogtreecommitdiffstats
path: root/services/sync/modules
diff options
context:
space:
mode:
authorwolfbeast <mcwerewolf@gmail.com>2018-10-06 11:24:36 +0200
committerwolfbeast <mcwerewolf@gmail.com>2018-10-06 11:24:36 +0200
commit04ebf989fb9dcbd2d67efa5194695ede1f417712 (patch)
treec1ce700072fc39c67c7d0267f2fe875ff9ecd9c3 /services/sync/modules
parent18473f1844a8230130e1fc23d7ebf7d33183316f (diff)
downloadUXP-04ebf989fb9dcbd2d67efa5194695ede1f417712.tar
UXP-04ebf989fb9dcbd2d67efa5194695ede1f417712.tar.gz
UXP-04ebf989fb9dcbd2d67efa5194695ede1f417712.tar.lz
UXP-04ebf989fb9dcbd2d67efa5194695ede1f417712.tar.xz
UXP-04ebf989fb9dcbd2d67efa5194695ede1f417712.zip
Update constants.js for array assignment.
Diffstat (limited to 'services/sync/modules')
-rw-r--r--services/sync/modules/constants.js8
1 files changed, 6 insertions, 2 deletions
diff --git a/services/sync/modules/constants.js b/services/sync/modules/constants.js
index c8d66d921..7a388b73d 100644
--- a/services/sync/modules/constants.js
+++ b/services/sync/modules/constants.js
@@ -4,7 +4,8 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
// Process each item in the "constants hash" to add to "global" and give a name
-this.EXPORTED_SYMBOLS = [((this[key] = val), key) for ([key, val] in Iterator({
+this.EXPORTED_SYMBOLS = [];
+for (let [key, val] of Object.entries({
WEAVE_VERSION: "@weave_version@",
@@ -182,4 +183,7 @@ MIN_PASS_LENGTH: 8,
LOG_DATE_FORMAT: "%Y-%m-%d %H:%M:%S",
-}))];
+})) {
+ this[key] = val;
+ this.EXPORTED_SYMBOLS.push(key);
+}