fix corner case in evaluate (#4068)

fixes #4067
This commit is contained in:
Alex Lam S.L
2020-08-24 07:57:26 +01:00
committed by GitHub
parent 7dc61cdc89
commit 0eb0c9b388
2 changed files with 26 additions and 0 deletions

View File

@@ -3568,6 +3568,7 @@ merge(Compressor.prototype, {
escaped[0].walk(new TreeWalker(function(node) {
if (found) return true;
if (node === ref) return found = true;
if (node instanceof AST_Scope) return true;
}));
return found;
default: