diff --git a/tools/node.js b/tools/node.js index bef296ea..4c8c4fe9 100644 --- a/tools/node.js +++ b/tools/node.js @@ -70,6 +70,8 @@ exports.minify = function(files, options) { if (options.spidermonkey) { toplevel = UglifyJS.AST_Node.from_mozilla_ast(files); } else { + if (typeof files == "undefined") + {files = ""}; if (typeof files == "string") files = [ files ]; files.forEach(function(file){