generator function requirements

Rick Waldron waldron.rick at
Sun Apr 12 23:53:37 UTC 2015

On Sun, Apr 12, 2015 at 11:59 AM Mark Volkmann <r.mark.volkmann at>

> I couldn't find this in spec. Is it required for generator functions to
> return an object that is both iterable (has Symbol.iterator method) and an
> iterator (has next method). It seems Babel does this, but I want verify
> whether that is required.

The object that's returned by a generator function conforms to both the
Iterator and Iterable interfaces.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the es-discuss mailing list