Does this mean that the body of a generator function is strict mode, or
just that yield is reserved?
-- Marcus
___
es-discuss mailing list
es-discuss@mozilla.org
https://mail.mozilla.org/listinfo/es-discuss
On Mar 23, 2014, at 9:59 AM, Marcus Stade wrote:
Does this mean that the body of a generator function is strict mode, or just
that yield is reserved?
No, but within generator functions 'yield' is always interpreted as the yield
operator.
Allen
On Mon, Mar 3, 2014 at 6:44 PM, joe joe...@gmail.com wrote:
Is the function* syntax for generators final?
Yes
I'm curious what the justification for it is,
The yield keyword was previously only reserved in strict mode (ES5
7.6.1.2), which means it's perfectly valid JS to have: function
3 matches
Mail list logo