From f6203bd5a8063a3af835603ce1959310f14f7f5e Mon Sep 17 00:00:00 2001 From: Artemy Tregubenko Date: Thu, 9 Jan 2014 15:20:05 +0100 Subject: [PATCH] added hasOwnProperty check to avoid warnings --- tools/node.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/node.js b/tools/node.js index 4dfa9338..bef296ea 100644 --- 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]); + } } } -- 2.34.1