That First Next Argument

Allen Wirfs-Brock allen at
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.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the es-discuss mailing list