faster fail-over

This commit is contained in:
alexlamsl 2017-12-07 23:36:39 +08:00
parent 571ce3529e
commit 4f5d12c573

View File

@ -4655,6 +4655,7 @@ merge(Compressor.prototype, {
var arg_index;
if (consequent instanceof AST_Call
&& alternative.TYPE === consequent.TYPE
&& consequent.args.length > 0
&& consequent.args.length == alternative.args.length
&& consequent.expression.equivalent_to(alternative.expression)
&& !self.condition.has_side_effects(compressor)