aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorebednarz <github@bednarz.nl>2014-04-13 11:16:10 +0200
committerebednarz <github@bednarz.nl>2014-04-13 11:16:10 +0200
commit6fcabbde08cdac7890fedcc29b0342208998a871 (patch)
tree36c6e6ad35ae9e91d98ae70abd60b62eae0907e8 /tools
parent14f290f8abf796bb0a772532e1f6c584744e0e16 (diff)
downloadtracifyjs-6fcabbde08cdac7890fedcc29b0342208998a871.tar.gz
tracifyjs-6fcabbde08cdac7890fedcc29b0342208998a871.zip
Fix sourceMapIncludeSources exception in Node API
https://github.com/mishoo/UglifyJS2/issues/459
Diffstat (limited to 'tools')
-rw-r--r--tools/node.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/node.js b/tools/node.js
index bef296ea..04e67e78 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]);
}
}
}