Merge branch 'master' into harmony-v3.0.16

This commit is contained in:
alexlamsl
2017-06-14 17:09:30 +08:00
35 changed files with 1155 additions and 208 deletions

View File

@@ -73,6 +73,7 @@ function OutputStream(options) {
shebang : true,
shorthand : undefined,
source_map : null,
webkit : false,
width : 80,
wrap_iife : false,
}, true);
@@ -629,6 +630,13 @@ function OutputStream(options) {
return true;
}
if (output.option('webkit')) {
var p = output.parent();
if (p instanceof AST_PropAccess && p.expression === this) {
return true;
}
}
if (output.option('wrap_iife')) {
var p = output.parent();
return p instanceof AST_Call && p.expression === this;