extend cascade into a.b (#1829)

fixes #27
This commit is contained in:
Alex Lam S.L
2017-04-19 04:17:15 +08:00
committed by GitHub
parent 0f4f01b66c
commit 28cfb65c47
2 changed files with 23 additions and 0 deletions

View File

@@ -3132,6 +3132,7 @@ merge(Compressor.prototype, {
field = "left";
}
} else if (cdr instanceof AST_Call
|| cdr instanceof AST_PropAccess
|| cdr instanceof AST_Unary && !unary_side_effects(cdr.operator)) {
field = "expression";
} else {