enhance side_effects (#4675)

This commit is contained in:
Alex Lam S.L
2021-02-22 07:44:16 +00:00
committed by GitHub
parent 960668ccdb
commit f9a2a9d78e
2 changed files with 25 additions and 2 deletions

View File

@@ -8516,6 +8516,8 @@ merge(Compressor.prototype, {
}
});
return node;
} else if (!node.has_side_effects(compressor)) {
self.drop_side_effect_free = return_null;
}
}
var arg_used, insert, in_loop, scope;