-
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
uglify-js 3.4.9 broke js-xlsx after #3243, now work just when conditionals is False #3309
Comments
The suspicious file is |
i have the same issue, in my enterprise we use js-xlsx and when we uglify the lib appears to be broken. |
Having the same problem here. Please fix or rollback! |
I have a repro here (for at least one case, I don't know if there are others). This code:
is minified to:
This throws following error (since
Steps:
Same code works fine with v3.4.8. After a git bisect between v3.4.8 and v3.4.9, the following commit is responsible: |
fixes mishoo#3245 fixes mishoo#3257 fixes mishoo#3260 fixes mishoo#3269 fixes mishoo#3271 fixes mishoo#3278 fixes mishoo#3309 fixes mishoo#3319 fixes mishoo#3321
Uglify version (uglifyjs -V)
3.4.9
I'm using a js-xlsx to generate files by javascript, by the way, after 3.4.9 update all XML's generated in client-side in UTF-8 with accents is translated to wrong encode, i'm trying create a separated snippet to demonstrate the problem.
The problem solves when conditionals inside compress is false.
I opened the issue before I got the demo just to get the problem going, which might be the same as other users.
Sorry my english.
The text was updated successfully, but these errors were encountered: