archives

« Bugzilla Issues Index

#1567 — 15.19.4.2.1: clarification for @@iterator of Generator instances needed


15.19.4.2.1 currently says:
> The value of the @@iterator own property of a Generator instance is that Generator instance.

This is not compliant to the Iterable contract which describes @@iterator as a function of type '() -> Iterator'. @@iterator either needs to go to %GeneratorPrototype% or a bound function / arrow function like wrapper is needed.


right, it belogs on %GeneratorPrototype% That's even shown on the class hierarchy diagram in 15.19.3

fixed in rev 16 editor's draft


fixed in rev16 draft. July 15, 2013