fix corner case in merge_vars (#5437)

fixes #5436
This commit is contained in:
Alex Lam S.L
2022-05-07 21:16:28 +01:00
committed by GitHub
parent 89a35f9fcd
commit 35c2149dbd
2 changed files with 33 additions and 2 deletions

View File

@@ -6102,9 +6102,10 @@ Compressor.prototype.compress = function(node) {
if (prop.static) {
prop.value.walk(tw);
} else {
push(tw);
push();
segment.block = node;
prop.value.walk(tw);
pop(tw);
pop();
}
});
return true;