Navigation Menu

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

Yield expression cannot be a default value #1634

Open
ghost opened this issue Nov 23, 2016 · 1 comment
Open

Yield expression cannot be a default value #1634

ghost opened this issue Nov 23, 2016 · 1 comment

Comments

@ghost
Copy link

ghost commented Nov 23, 2016

@ariya A Yield expression cannot be a default value, but still both of this combos got parsed. None of them throws.

function *g() { (x = yield) => {} }
function *g() { ({x = yield}) => {} }
@ghost
Copy link
Author

ghost commented Dec 6, 2016

This is related to this #1645

@ghost ghost closed this as completed Apr 3, 2017
@ghost ghost reopened this Sep 25, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

0 participants