Skip to content
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

Flow does not allow yield without an expression; I think it should. #912

Closed
jamesgpearce opened this issue Oct 6, 2015 · 0 comments
Closed
Labels

Comments

@jamesgpearce
Copy link
Contributor

I think I should be able to omit a yield expression, but Flow doesn't agree. It's happy when I yield undefined; though.

image

samwgoldman added a commit to samwgoldman/flow that referenced this issue Oct 9, 2015
The only tricky bit here is that yield* expressions must have an
argument. Personally, I would have preferred a sum type in the AST, but
the estree spec has `Expression | null`, so I wanted to stay close to
that.

Fixes facebook#912
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants