[Pkg-javascript-commits] [uglifyjs] 21/190: allow for anonymous map generation using string type check

Antonio Terceiro terceiro at moszumanska.debian.org
Sun Aug 7 23:17:09 UTC 2016


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

terceiro pushed a commit to annotated tag upstream/2.7.0
in repository uglifyjs.

commit 3a5f35484606914b54fb80540f51b37fae20282b
Author: Ingo Struck <git at ingostruck.de>
Date:   Thu Aug 27 19:38:33 2015 +0200

    allow for anonymous map generation using string type check
---
 tools/node.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/node.js b/tools/node.js
index 29d5632..eba2bc1 100644
--- a/tools/node.js
+++ b/tools/node.js
@@ -131,7 +131,7 @@ exports.minify = function(files, options) {
     var stream = UglifyJS.OutputStream(output);
     toplevel.print(stream);
 
-    if(options.outSourceMap){
+    if (options.outSourceMap && "string" === typeof options.outSourceMap) {
         stream += "\n//# sourceMappingURL=" + options.outSourceMap;
     }
 

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