From 0678ae2076a9f817ecb8837279c24cf54ea819c2 Mon Sep 17 00:00:00 2001 From: Mihai Bazon Date: Wed, 3 Oct 2012 11:34:05 +0300 Subject: [PATCH] =?utf8?q?fix=20for=20`a=20=3D=20!b=20&&=20!c=20&&=20!d=20?= =?utf8?q?&&=20!e=20=E2=86=92=20a=3D!(b||c||d||e)`?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- lib/compress.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/compress.js b/lib/compress.js index 41578c14..16812571 100644 --- a/lib/compress.js +++ b/lib/compress.js @@ -1416,7 +1416,8 @@ merge(Compressor.prototype, { return exp[0]; } if (compressor.option("comparisons")) { - if (!(compressor.parent() instanceof AST_Binary)) { + if (!(compressor.parent() instanceof AST_Binary) + || compressor.parent() instanceof AST_Assign) { var negated = make_node(AST_UnaryPrefix, self, { operator: "!", expression: self.negate(compressor) -- 2.34.1