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

When ecmaFeatures.forOf is true, check for operator is "undefined" when match keyword is "in" #39

Closed
peterkc opened this issue Jan 24, 2015 · 0 comments

Comments

@peterkc
Copy link
Contributor

peterkc commented Jan 24, 2015

Enable forOf

{ forOf: true }

Espree will error with "undefined"

for (var k in console) {
    doSomething();
}

See test files in PR for examples.

@nzakas nzakas closed this as completed in 572527f Jan 24, 2015
nzakas added a commit that referenced this issue Jan 24, 2015
When ecmaFeatures.forOf is true, check for operator is "undefined" when match keyword is "in" #39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants