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

Bug - Object Destructuring, with duplicate variable names fails #1176

Closed
RUSHt opened this issue Apr 13, 2022 · 1 comment
Closed

Bug - Object Destructuring, with duplicate variable names fails #1176

RUSHt opened this issue Apr 13, 2022 · 1 comment

Comments

@RUSHt
Copy link

RUSHt commented Apr 13, 2022

Bug

var { a, b, a } = data is valid JS but will fail minify.

Parameter a was used already [js/2944.489ea112.js:560,4] will be reported as error.

Version (complete output of terser -V or specific git commit)

Was using Quasar.

@RUSHt RUSHt changed the title Object Destructuring, with duplicate variable names fails Bug - Object Destructuring, with duplicate variable names fails Apr 13, 2022
@fabiosantoscode
Copy link
Collaborator

fabiosantoscode commented Apr 26, 2022

Thanks for reporting! let and const do need that error but var doesn't care.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants