From 04ebf989fb9dcbd2d67efa5194695ede1f417712 Mon Sep 17 00:00:00 2001 From: wolfbeast Date: Sat, 6 Oct 2018 11:24:36 +0200 Subject: Update constants.js for array assignment. --- services/sync/modules/constants.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'services/sync') 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); +} -- cgit v1.2.3