Bug 394167 - remove reference to nsIEnumerator from iteratorUtils.jsm. r=jorgk
authoraceman <acelists@atlas.sk>
Wed, 08 Mar 2017 22:44:00 +0100
changeset 21279 64efa461aeb0ba7b5a460395d7dcbde56beeafdc
parent 21278 cdba3b908f7af12a31ed1eefc8c26ee69834a47e
child 21280 ff228788b7eb8d2fea17fc3f282518dda8bd591d
push id12930
push usermozilla@jorgk.com
push dateThu, 09 Mar 2017 10:51:46 +0000
treeherdercomm-central@64efa461aeb0 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjorgk
bugs394167
Bug 394167 - remove reference to nsIEnumerator from iteratorUtils.jsm. r=jorgk
mailnews/base/util/iteratorUtils.jsm
--- a/mailnews/base/util/iteratorUtils.jsm
+++ b/mailnews/base/util/iteratorUtils.jsm
@@ -37,19 +37,16 @@ function toArray(aObj) {
 /**
  * Given a JS array, JS iterator, or one of a variety of XPCOM collections or
  * iterators, return a JS iterator suitable for use in a for...of expression.
  *
  * Currently, we support the following types of XPCOM iterators:
  *   nsIArray
  *   nsISimpleEnumerator
  *
- * This intentionally does not support nsIEnumerator as it is obsolete and
- * no longer used in the base code.
- *
  * Note that old-style JS iterators are explicitly not supported in this
  * method, as they are going away. For a limited time, the resulting iterator
  * can be used in a for...in loop, but this is a legacy compatibility shim that
  * will not work forever. See bug 1098412.
  *
  *   @param aEnum  the enumerator to convert
  *   @param aIface (optional) an interface to QI each object to prior to
  *                 returning