-
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
Property assignment dropped with pure_getters=true
#2838
Labels
Comments
It appears to be a regression from [email protected]. The commit that introduced the issue is 0b0eac1 |
Thanks to @filipesilva for the detailed report, and @kzc for the bisection - got the cause and fix down much quicker 👍 PR coming up. |
alexlamsl
added a commit
to alexlamsl/UglifyJS
that referenced
this issue
Jan 22, 2018
alexlamsl
added a commit
that referenced
this issue
Jan 22, 2018
@alexlamsl awesome, thank you so much! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Bug report or feature request?
Bug report
ES5 or ES6+ input?
ES5
Uglify version (
uglifyjs -V
)[email protected]
JavaScript input
The
uglifyjs
CLI command executed orminify()
options used.JavaScript output or error produced.
Other information
The
(button || anchor).color = 'accent';
statement is dropped when thepure_getters
compress is used.Disabling
pure_getters
or changing the statement tobutton.color = 'accent';
will cause it to not be dropped anymore.I think this is a bug because
button.color = 'accent';
and(button || anchor).color = 'accent';
should not have different results. I agree it's a side effect though.Related to angular/devkit#388
The text was updated successfully, but these errors were encountered: