Using Generators in Extended Mode for Co-Routines

2014-09-12 Thread Carl Smith
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

Re: Using Generators in Extended Mode for Co-Routines

2014-09-12 Thread Erik Arvidsson
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

Re: Using Generators in Extended Mode for Co-Routines

2014-09-12 Thread Till Schneidereit
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

Re: Using Generators in Extended Mode for Co-Routines

2014-09-12 Thread Carl Smith
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