right: make_node(AST_String, self, { value: "" })
});
case "Function":
- if (self.args[self.args.length - 1] instanceof AST_String) {
+ if (all(self.args, function(x){ return x instanceof AST_String })) {
// quite a corner-case, but we can handle it:
// https://github.com/mishoo/UglifyJS2/issues/203
// if the code argument is a constant, then we can minify it.
return new Function("str", f);
};
+function all(array, predicate) {
+ for (var i = array.length; --i >= 0;)
+ if (!predicate(array[i]))
+ return false;
+ return true;
+};
+
function Dictionary() {
this._values = Object.create(null);
this._size = 0;