public
/
UglifyJS.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
03cf94e
)
added hasOwnProperty check to avoid warnings
author
Artemy Tregubenko
<me@arty.name>
Thu, 9 Jan 2014 14:20:05 +0000
(15:20 +0100)
committer
Artemy Tregubenko
<me@arty.name>
Thu, 9 Jan 2014 14:20:05 +0000
(15:20 +0100)
tools/node.js
patch
|
blob
|
history
diff --git
a/tools/node.js
b/tools/node.js
index
4dfa933
..
bef296e
100644
(file)
--- a/
tools/node.js
+++ b/
tools/node.js
@@
-114,7
+114,9
@@
exports.minify = function(files, options) {
});
if (options.sourceMapIncludeSources) {
for (var file in sourcesContent) {
- options.source_map.get().setSourceContent(file, sourcesContent[file]);
+ if (sourcesContent.hasOwnProperty(file)) {
+ options.source_map.get().setSourceContent(file, sourcesContent[file]);
+ }
}
}