It seems that ES6 will allow implicit opt-in for generators, with the body
of the generator being ES6, so it can yield. It also seems that the plan is
that the body would be forced into strict mode.
The following currently works in Chrome with Experimental JavaScript
Features enabled, but would
Generators are not implicit strict. Only modules and classes are.
On Sep 12, 2014 6:30 AM, Carl Smith carl.in...@gmail.com wrote:
It seems that ES6 will allow implicit opt-in for generators, with the body
of the generator being ES6, so it can yield. It also seems that the plan is
that the body
On Fri, Sep 12, 2014 at 3:44 PM, Erik Arvidsson erik.arvids...@gmail.com
wrote:
Generators are not implicit strict. Only modules and classes are.
Which is why the example works nicely in Firefox, too.
___
es-discuss mailing list
Thanks. Appreciated. I was led to believe this would change. My bad.
___
es-discuss mailing list
es-discuss@mozilla.org
https://mail.mozilla.org/listinfo/es-discuss
4 matches
Mail list logo