Merge branch 'master' into harmony

This commit is contained in:
Richard van Velzen
2016-05-16 09:53:13 +02:00
2 changed files with 59 additions and 0 deletions

View File

@@ -827,6 +827,9 @@ merge(Compressor.prototype, {
if (stat instanceof AST_SimpleStatement) {
stat.body = (function transform(thing) {
return thing.transform(new TreeTransformer(function(node){
if (node instanceof AST_New) {
return node;
}
if (node instanceof AST_Call && node.expression instanceof AST_Function) {
return make_node(AST_UnaryPrefix, node, {
operator: "!",