That First Next Argument

Allen Wirfs-Brock allen at wirfs-brock.com
Fri Aug 22 11:31:16 PDT 2014


On Aug 22, 2014, at 9:27 AM, Kevin Smith wrote:

> 
> and it could only be reserved in strict mode code.
> 
> I feel like I'm forgetting something obvious, but why?  We already use a parameterized grammar (not parameterized on strictness) for "yield".  I would think you'd just be adding to that parameterization.
> 

I think you'reright.  The fact that `yield` is reserved in ES5 strict mode is only relevant for non-generator functions.  We could (now, but not latter) reserve another identifier contextually within generator functions.  We just did something similar with `await` within modules.

Allen
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20140822/b52cd8b0/attachment.html>


More information about the es-discuss mailing list