generator function requirements

Mark Volkmann r.mark.volkmann at gmail.com
Sun Apr 12 15:59:15 UTC 2015


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.

-- 
R. Mark Volkmann
Object Computing, Inc.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20150412/bc841444/attachment.html>


More information about the es-discuss mailing list