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

let declaration not directrly within block #2685

Closed
faiwer opened this issue Sep 18, 2015 · 3 comments
Closed

let declaration not directrly within block #2685

faiwer opened this issue Sep 18, 2015 · 3 comments
Labels

Comments

@faiwer
Copy link

faiwer commented Sep 18, 2015

while(true)
  if(true)
  {
    let a = 1;  // let declaration not directly within block
  }

also

if(true)
  //;
else while(true)
{
  let a = 1; // let declaration not directly within block
}

with {}:

while(true)
{
  if(true)
  {
    let a = 1;
  }
}
// without errors
@lukeapage
Copy link
Member

I'm sure this came up already and was fixed but both examples are broken on master still.

@faiwer
Copy link
Author

faiwer commented Sep 22, 2015

Now all right. Thank you

@faiwer faiwer closed this as completed Sep 22, 2015
@nicolo-ribaudo
Copy link
Contributor

Can you keep this open until #2686 is merged?

@faiwer faiwer reopened this Sep 22, 2015
jugglinmike pushed a commit to jugglinmike/jshint that referenced this issue Jan 2, 2016
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

3 participants