22.214.171.124.1 new Enumerator ([collection])
When the Enumerator constructor is called with zero or one argument, the following steps are taken:
If collection is not present, let collection be undefined, and then go to step 6.
If collection is an Array instance, go to step 5.
If collection is a host object that supports an implementation-dependent enumeration protocol, go to step 5.
Throw a TypeError exception.
The [[EnumerationState]] property of the newly created object is set to a state indicating that the enumeration is at the first item of the enumeration of collection. If collection has no enumerable items, the state will indicate that the end of the enumeration has been reached.
The [[Collection]] property of the newly created object is set to collection.
The [[Prototype]] property of the newly constructed object is set to the original Error prototype object, the one that is the initial value of Enumerator.prototype (see section 126.96.36.199.1 of this document).
The [[Class]] property of the newly constructed Enumerator object is set to "Object".
Return the newly constructed object.