An Arrow Parsing Edge Case

Kevin Smith zenparsing at
Fri Mar 21 07:14:58 PDT 2014

> `yield` is a keyword inside `function*` whether you're in strict or
> non-strict code.

 Right, but not within the body of nested arrow functions:

    function* g() { () => { var yield; } }

IIUC, this would parse fine.  So I'm asking whether a "yield" in the token
stream for an arrow parameter list should be interpreted as a keyword or an
identifier when we do the rewind/transform dance.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the es-discuss mailing list