You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Property assignment dropped with pure_getters=true #2838
The (button || anchor).color = 'accent'; statement is dropped when the pure_getters compress is used.
Disabling pure_getters or changing the statement to button.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.
Activity
kzc commentedon Jan 22, 2018
It appears to be a regression from [email protected]. The commit that introduced the issue is 0b0eac1
alexlamsl commentedon Jan 22, 2018
Thanks to @filipesilva for the detailed report, and @kzc for the bisection - got the cause and fix down much quicker 👍
PR coming up.
drop assignments to constant expressions only
drop assignments to constant expressions only (#2839)
filipesilva commentedon Jan 23, 2018
@alexlamsl awesome, thank you so much!