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

For loops allow let even with blockBindings is false #14

Closed
nzakas opened this issue Dec 20, 2014 · 0 comments
Closed

For loops allow let even with blockBindings is false #14

nzakas opened this issue Dec 20, 2014 · 0 comments
Labels

Comments

@nzakas
Copy link
Member

nzakas commented Dec 20, 2014

Currently, for loops (for, for-in, for-of) all allow let to be used even when blockBindings is set to false. So this works fine:

for (let x of y) {
}

With this config:

{
    blockBindings: false,
    forOf: true
}

This should throw an error instead.

@nzakas nzakas added the bug label Dec 20, 2014
@nzakas nzakas closed this as completed in c28fc0c Dec 20, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant