From ce884169b68ed8f00dd3691169447765a7c38a13 Mon Sep 17 00:00:00 2001 From: Dan Kohn Date: Thu, 27 Mar 2014 01:13:03 -0400 Subject: [PATCH] Convert undefined files to empty string --- tools/node.js | 2 ++ 1 file changed, 2 insertions(+) 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){