-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Rule proposal: return-yield
#1024
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
Comments
Promises returned from async functions are automatically unwrapped, so |
you're not wrong, I think. additionally this has received 0 reactions since its creation also suggests it's something of low value to the community. seems like good signal that we should not implement this. |
Nit: But otherwise yeah the lack of interest here votes to me to close. 👍 |
return yield* iterator()
is very similar toreturn await promise
- it gives better stack trace in V8 and can be catched. I think it makes sense for it to have the same options asreturn-await
(ref #994).The text was updated successfully, but these errors were encountered: