Update constants.js for array assignment.

This commit is contained in:
wolfbeast 2018-10-06 11:24:36 +02:00 • committed by Roy Tam
commit 457d84209a

View file

@ -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);
}