Given the following edge case contained in non-strict code:

    function* g() { (yield) => null }

Is this a syntax error, or not?

The sequence `(yield)` will successfully parse as a parenthesized
expression.  If we re-parse as an arrow parameter list, do we view the
 "lexical token stream" as containing a yield keyword, or an identifier
whose value is yield?
_______________________________________________
es-discuss mailing list
es-discuss@mozilla.org
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to