fix corner case in string concatenations (#3692)

- migrate de-facto compression to `conditionals` & `strings`

fixes #3689
This commit is contained in:
Alex Lam S.L
2020-01-28 07:33:11 +08:00
committed by GitHub
parent 0dcedad2d5
commit e9e76dcf04
6 changed files with 164 additions and 98 deletions

View File

@@ -830,6 +830,7 @@ issue_3552: {
unreachable_assign: {
options = {
dead_code: true,
strings: true,
}
input: {
console.log(A = "P" + (A = "A" + (B = "S" + (A = B = "S"))), A, B);