Merge branch 'master' into harmony-v3.1.1

This commit is contained in:
alexlamsl
2017-09-17 04:43:43 +08:00
8 changed files with 359 additions and 4 deletions

View File

@@ -1398,7 +1398,7 @@ function OutputStream(options) {
self.expression.print(output);
if (self instanceof AST_New && !need_constructor_parens(self, output))
return;
if (self.expression instanceof AST_Lambda) {
if (self.expression instanceof AST_Call || self.expression instanceof AST_Lambda) {
output.add_mapping(self.start);
}
output.with_parens(function(){