[Pkg-javascript-commits] [uglifyjs] 03/06: More fixes for the breaking changes in yargs

Jonas Smedegaard dr at jones.dk
Tue May 19 00:02:43 UTC 2015


This is an automated email from the git hooks/post-receive script.

js pushed a commit to tag v2.4.20
in repository uglifyjs.

commit 5d60484553895a0eac1ac764d1fa7fc683c8499d
Author: Mihai Bazon <mihai.bazon at gmail.com>
Date:   Sun Apr 5 13:19:46 2015 +0300

    More fixes for the breaking changes in yargs
    
    Close #670
---
 bin/uglifyjs | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/bin/uglifyjs b/bin/uglifyjs
index 9b335b7..df7b783 100755
--- a/bin/uglifyjs
+++ b/bin/uglifyjs
@@ -215,7 +215,7 @@ if (ARGS.keep_fnames) {
 if (BEAUTIFY)
     UglifyJS.merge(OUTPUT_OPTIONS, BEAUTIFY);
 
-if (ARGS.comments) {
+if (ARGS.comments != null) {
     if (/^\/.*\/[a-zA-Z]*$/.test(ARGS.comments)) {
         var regex_pos = ARGS.comments.lastIndexOf("/");
         try {
@@ -357,11 +357,11 @@ async.eachLimit(files, 1, function (file, cb) {
         TOPLEVEL = UglifyJS.AST_Node.from_mozilla_ast(TOPLEVEL);
     });
 
-    if (ARGS.wrap) {
+    if (ARGS.wrap != null) {
         TOPLEVEL = TOPLEVEL.wrap_commonjs(ARGS.wrap, ARGS.export_all);
     }
 
-    if (ARGS.enclose) {
+    if (ARGS.enclose != null) {
         var arg_parameter_list = ARGS.enclose;
         if (arg_parameter_list === true) {
             arg_parameter_list = [];

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/uglifyjs.git



More information about the Pkg-javascript-commits mailing list