-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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: destructuring + calling function with same param name as destructured var #3122
Comments
PS: if the function argument is changed to something other than the destructured var name (e.g.
it works since the generated expression is then newRotation2=newRotation |
There are two uglify-es packages? What's the difference? |
https://www.npmjs.com/package/@fabiosantoscode/uglify-es is maintained. |
Sorry if this sounds like a silly question but, why aren't both packages joined then with more contributors? The latest commit to this one (I presume the official one) is only 11h old. I ask because I'm actually using using a bundler (fusebox) that depends on this uglify-es package internally and I think the only way I could get it to work is to make a yarn alias from one to the other, which feels weird. |
One is actively maintained and the other is not. Use whatever package you prefer. |
Fixed in #2881 |
Bug report
Uglify version (
uglifyjs -V
) latestJavaScript input
The
uglifyjs
CLI command executed orminify()
options used.JavaScript output or error produced.
The output is the following:
The problem is with the sequences compress option, which generates this part:
where newRotation=newRotation fails because newRotation is const and cannot be reassigned
The text was updated successfully, but these errors were encountered: