You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
According to the ES 2015 spec, a YieldExpression with no value is valid. (You can see some examples in Axel Rauschmayer's article on generators.) However, Espree currently throws an error when it attempts to parse the following code, with generators enabled:
function*asyncFunc(){varcaller=yield;}
Changing yield to yield 1 allows parsing to succeed.
The text was updated successfully, but these errors were encountered:
According to the ES 2015 spec, a
YieldExpression
with no value is valid. (You can see some examples in Axel Rauschmayer's article on generators.) However, Espree currently throws an error when it attempts to parse the following code, with generators enabled:Changing
yield
toyield 1
allows parsing to succeed.The text was updated successfully, but these errors were encountered: