fix `--comments` (close #16)
authorMihai Bazon <mihai@bazon.net>
Thu, 18 Oct 2012 07:54:10 +0000 (10:54 +0300)
committerMihai Bazon <mihai@bazon.net>
Thu, 18 Oct 2012 07:54:10 +0000 (10:54 +0300)
bin/uglifyjs2

index acca760..aadda7c 100755 (executable)
@@ -127,7 +127,7 @@ if (ARGS.comments) {
             var type = comment.type;
             if (type == "comment2") {
                 // multiline comment
-                return /@preserve|@license|@cc_on/i.test(test);
+                return /@preserve|@license|@cc_on/i.test(text);
             }
         }
     }