suppress inline within substituted AST_Scope (#2658)

fixes #2657
This commit is contained in:
Alex Lam S.L
2017-12-26 18:56:59 +08:00
committed by GitHub
parent 05e7d34ed4
commit 7f342cb3e3
2 changed files with 31 additions and 1 deletions

View File

@@ -3982,7 +3982,7 @@ merge(Compressor.prototype, {
do {
scope = compressor.parent(++level);
if (scope instanceof AST_SymbolRef) {
scope = scope.fixed_value();
if (scope.fixed_value() instanceof AST_Scope) return false;
} else if (scope instanceof AST_Catch) {
catches[scope.argname.name] = true;
}