-
Notifications
You must be signed in to change notification settings - Fork 47.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
'Missing yield in generator' should not be an error in JSX #1475
Comments
Curious -- what's the use case for a generator that never yields? |
The most common example I can think of will be this in koajs
Also, methods might take generators as parameters and we might need to pass one that does nothing except return. |
Updating esprima: facebookarchive/esprima#17, which will make it's way back here eventually |
I tested that your koa example is transformed with an |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Upgrade to a newer version of esprima-fb removes this error.
As a work around, putting a yield after the return works for now:
The text was updated successfully, but these errors were encountered: