aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAlex Lam S.L <alexlamsl@gmail.com>2019-10-28 23:54:27 +0800
committerGitHub <noreply@github.com>2019-10-28 23:54:27 +0800
commit83fb8b4ca1e877c9ca7b3b07712ddec1c6f3a43d (patch)
treeb995cb2c53a926b0850278a1856a3a3ef043c150 /lib
parentf38e31bd1ee117fc8adb0d13982b5ec16e761f52 (diff)
downloadtracifyjs-83fb8b4ca1e877c9ca7b3b07712ddec1c6f3a43d.tar.gz
tracifyjs-83fb8b4ca1e877c9ca7b3b07712ddec1c6f3a43d.zip
fix corner case in `ie8` (#3543)
fixes #3542
Diffstat (limited to 'lib')
-rw-r--r--lib/compress.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/compress.js b/lib/compress.js
index 7c5558bd..10161337 100644
--- a/lib/compress.js
+++ b/lib/compress.js
@@ -4238,7 +4238,7 @@ merge(Compressor.prototype, {
def(AST_Binary, function(compressor, first_in_statement) {
var right = this.right.drop_side_effect_free(compressor, first_in_statement);
if (!right) return this.left.drop_side_effect_free(compressor, first_in_statement);
- if (lazy_op[this.operator]) {
+ if (lazy_op[this.operator] && !(right instanceof AST_Function)) {
var node = this;
if (right !== node.right) {
node = this.clone();