[Pkg-javascript-commits] [uglifyjs] 54/77: Fix --reserved-file

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


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

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

commit 375c88245a89fecf4387d6bde732ee2f230aecc6
Author: Mihai Bazon <mihai.bazon at gmail.com>
Date:   Sat Mar 14 11:36:58 2015 +0200

    Fix --reserved-file
---
 bin/uglifyjs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bin/uglifyjs b/bin/uglifyjs
index ca7212c..5467869 100755
--- a/bin/uglifyjs
+++ b/bin/uglifyjs
@@ -159,6 +159,7 @@ if (ARGS.r) {
     if (MANGLE) MANGLE.except = ARGS.r.replace(/^\s+|\s+$/g).split(/\s*,+\s*/);
 }
 
+var RESERVED = null;
 if (ARGS.reserved_file) (function(){
     var data = fs.readFileSync(ARGS.reserved_file, "utf8");
     RESERVED = data = JSON.parse(data);
@@ -258,7 +259,6 @@ var OUTPUT_FILE = ARGS.o;
 var TOPLEVEL = null;
 var P_RELATIVE = ARGS.p && ARGS.p == "relative";
 var SOURCES_CONTENT = {};
-var RESERVED = null;
 
 var SOURCE_MAP = ARGS.source_map ? UglifyJS.SourceMap({
     file: P_RELATIVE ? path.relative(path.dirname(ARGS.source_map), OUTPUT_FILE) : OUTPUT_FILE,

-- 
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