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
_______________________________________________
es-discuss mailing list
es-discuss@mozilla.org
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to