[Pkg-javascript-commits] [uglifyjs] 04/28: Fix sourceMapIncludeSources exception in Node API

Jonas Smedegaard dr at jones.dk
Thu Oct 16 11:57:30 UTC 2014


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

js pushed a commit to branch master
in repository uglifyjs.

commit 6fcabbde08cdac7890fedcc29b0342208998a871
Author: ebednarz <github at bednarz.nl>
Date:   Sun Apr 13 11:16:10 2014 +0200

    Fix sourceMapIncludeSources exception in Node API
    
    https://github.com/mishoo/UglifyJS2/issues/459
---
 tools/node.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/node.js b/tools/node.js
index bef296e..04e67e7 100644
--- a/tools/node.js
+++ b/tools/node.js
@@ -115,7 +115,7 @@ exports.minify = function(files, options) {
         if (options.sourceMapIncludeSources) {
             for (var file in sourcesContent) {
                 if (sourcesContent.hasOwnProperty(file)) {
-                    options.source_map.get().setSourceContent(file, sourcesContent[file]);
+                    output.source_map.get().setSourceContent(file, sourcesContent[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