@@ -13888,7 +13888,10 @@ Compressor.prototype.compress = function(node) {
|
||||
var abort = false;
|
||||
stat.walk(new TreeWalker(function(node) {
|
||||
if (abort) return true;
|
||||
if (async && node instanceof AST_Await || node instanceof AST_Return) return abort = true;
|
||||
if (async && (node instanceof AST_Await || node instanceof AST_ForAwaitOf)
|
||||
|| node instanceof AST_Return) {
|
||||
return abort = true;
|
||||
}
|
||||
if (node instanceof AST_Scope) return true;
|
||||
}));
|
||||
return !abort;
|
||||
|
||||
Reference in New Issue
Block a user