From 044dbd2359419c2aba4a779c2095c6512b78e648 Mon Sep 17 00:00:00 2001 From: kzc Date: Sun, 15 Oct 2017 13:43:22 -0400 Subject: [PATCH] comments --- lib/compress.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/compress.js b/lib/compress.js index ae0742a2..27d3c8eb 100644 --- a/lib/compress.js +++ b/lib/compress.js @@ -4875,12 +4875,12 @@ merge(Compressor.prototype, { if (compressor.option("computed_props") && self.key instanceof AST_Constant // save a comparison in the typical case && ( - // whitelist acceptable props as AST_Constants are not all constant + // whitelist acceptable props as not all AST_Constants are true constants self.key instanceof AST_String || self.key instanceof AST_Number )) { self.key = self.key.value; - // fallthrough - `return self;` not needed as transformed tree in good form + // fallthrough - `return self` not needed as transformed tree in good form } // p:function(){} ---> p(){} // p:function*(){} ---> *p(){}