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

Duplicate variable declarations with destructuring are partially converted to let/const #131

Open
nene opened this issue Jun 5, 2016 · 0 comments
Labels

Comments

@nene
Copy link
Collaborator

nene commented Jun 5, 2016

For example, the below code should not be converted to let/const:

   var a = 1;
   var {a, b} = createObj();

Lebab understand that a is a repeated variable, but ignores the fact that b is declared together with it and attempts to convert it to const:

   var a = 1;
   const {a, b} = createObj();
@nene nene added the bug label Jun 5, 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

1 participant