fix corner case in hoist_props (#4986)

fixes #4985
This commit is contained in:
Alex Lam S.L
2021-05-30 05:00:32 +01:00
committed by GitHub
parent 7e88d52fae
commit 23b9f36bd8
2 changed files with 26 additions and 1 deletions

View File

@@ -7432,7 +7432,8 @@ merge(Compressor.prototype, {
&& all(right.properties, can_hoist_property)
&& all(def.references, function(ref) {
return ref.fixed_value() === right;
});
})
&& can_drop_symbol(sym, compressor);
}
});