Looks like Michaël has been working with generators in Firefox (he mentions JavaScript 1.7 somewhere).
Michaël, you should take a look at *harmony* generators. They will superseed the JS 1.7 generators in Firefox. It's the same concept but the syntax has evolved a little bit. For example yield is only allowed inside generator functions declared with function*. You can play with them with node 0.11.5. Also, some projects you can look at: https://github.com/jmar777/suspend https://github.com/spion/genny https://github.com/bjouhier/galaxy (mine - there is a browser example that works in Chrome Canary) Bruno On Thursday, August 15, 2013 12:31:18 AM UTC+2, Rick Waldron wrote: > > It's unwise to encourage the use of `yield` in non-generator function > bodies... "yield" is strict-mode reserved and will throw a SyntaxError > exception in ES6 engines. This appears in many places throughout the readme > file. > > > Rick > > > > > > > > > On Wed, Aug 14, 2013 at 3:38 PM, Michaël Rouges > <[email protected]<javascript:> > > wrote: > >> The wiki : https://github.com/Lcfvs/yld/wiki >> >> I apologize if my English isn't very correct, I receive with pleasure your >> comments. >> >> -- >> -- >> Job Board: http://jobs.nodejs.org/ >> Posting guidelines: >> https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines >> You received this message because you are subscribed to the Google >> Groups "nodejs" group. >> To post to this group, send email to [email protected]<javascript:> >> To unsubscribe from this group, send email to >> [email protected] <javascript:> >> For more options, visit this group at >> http://groups.google.com/group/nodejs?hl=en?hl=en >> >> --- >> You received this message because you are subscribed to the Google Groups >> "nodejs" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected] <javascript:>. >> For more options, visit https://groups.google.com/groups/opt_out. >> > > -- -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received this message because you are subscribed to the Google Groups "nodejs" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/nodejs?hl=en?hl=en --- You received this message because you are subscribed to the Google Groups "nodejs" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
