fix corner case in merge_vars (#4116)

fixes #4115
This commit is contained in:
Alex Lam S.L
2020-09-16 20:11:57 +01:00
committed by GitHub
parent 219aac6a84
commit 2a053710bd
2 changed files with 32 additions and 0 deletions

View File

@@ -4376,6 +4376,12 @@ merge(Compressor.prototype, {
pop();
return true;
}
if (node instanceof AST_LabeledStatement) {
push();
node.body.walk(tw);
pop();
return true;
}
if (node instanceof AST_Scope) {
if (node instanceof AST_Lambda) {
references[node.variables.get("arguments").id] = false;