Prevent error for Function(""). Close #538

This commit is contained in:
Mihai Bazon
2014-08-20 09:16:34 +03:00
parent e3066f9577
commit 548beeb6b1

View File

@@ -1745,6 +1745,7 @@ merge(Compressor.prototype, {
} catch(ex) {
if (ex !== ast) throw ex;
};
if (!fun) return self;
var args = fun.argnames.map(function(arg, i){
return make_node(AST_String, self.args[i], {
value: arg.print_to_string()