Fix sourceMapIncludeSources exception in Node API

https://github.com/mishoo/UglifyJS2/issues/459
This commit is contained in:
ebednarz
2014-04-13 11:16:10 +02:00
parent 14f290f8ab
commit 6fcabbde08

View File

@@ -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]);
}
}
}