Bug 1293004 - Replace in-tree consumer of non-standard Iterator() with Object.{values,entries} in chat/ in comm-central. r=aleth
authorAman Dwivedi <dwivedi.aman96@gmail.com>
Tue, 03 Jan 2017 16:25:03 +0530
changeset 20978 d16104cb778d72d07bdb978d9fb194a623d29aee
parent 20977 65c295598322d6863a3f6174de512c384ca19443
child 20979 eef804a8d9cf40c678c1d14c186ec6e9c913818a
push id12724
push usermozilla@jorgk.com
push dateSun, 08 Jan 2017 08:25:21 +0000
treeherdercomm-central@eef804a8d9cf [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersaleth
bugs1293004
Bug 1293004 - Replace in-tree consumer of non-standard Iterator() with Object.{values,entries} in chat/ in comm-central. r=aleth
chat/modules/jsProtoHelper.jsm
--- a/chat/modules/jsProtoHelper.jsm
+++ b/chat/modules/jsProtoHelper.jsm
@@ -869,17 +869,17 @@ var GenericProtocolPrototype = {
       return this.options[aName].default;
     throw aName + " has no default value in " + this.id + ".";
   },
   getOptions: function() {
     if (!this.options)
       return EmptyEnumerator;
 
     let purplePrefs = [];
-    for (let [name, option] in Iterator(this.options))
+    for (let [name, option] of Object.entries(this.options))
       purplePrefs.push(new purplePref(name, option));
     return new nsSimpleEnumerator(purplePrefs);
   },
   getUsernameSplit: function() {
     if (!this.usernameSplits || !this.usernameSplits.length)
       return EmptyEnumerator;
 
     return new nsSimpleEnumerator(