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

use string as type of variable in ForInStatement #6302

Closed
wants to merge 2 commits into from
Closed

Conversation

vladima
Copy link
Contributor

@vladima vladima commented Dec 31, 2015

per discussion in #4518

if (isBindingPattern(node.name)) {
// NOTE: do not check them if this is a binding pattern in variable declaration of ForIn statement
// this situation is already illegal so no need to report misleading errors.
if (isBindingPattern(node.name) && !isVariableInForInStatement) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this not allowed?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

because we have not implemented this yet: #3715. I think I'll remove this check so it won't be missed once #3715 is addresssed

@RyanCavanaugh
Copy link
Member

👍

@mhegazy
Copy link
Contributor

mhegazy commented Jan 7, 2016

closing this in favor of #6379

@mhegazy mhegazy closed this Jan 7, 2016
@vladima vladima deleted the stringInForIn branch January 7, 2016 23:04
@microsoft microsoft locked and limited conversation to collaborators Jun 19, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants