fix corner case in inline (#5311)

fixes #5222
This commit is contained in:
Alex Lam S.L
2022-01-25 16:47:24 +00:00
committed by GitHub
parent b46c7944c6
commit b9b2a4f7f8
3 changed files with 34 additions and 35 deletions

View File

@@ -8002,7 +8002,6 @@ Compressor.prototype.compress = function(node) {
var defs = defs_by_id[node.definition().id];
if (!defs) return;
if (node.fixed_value() !== defs.value) return;
if (is_lhs(node, this.parent())) return;
return make_node(AST_Object, node, { properties: [] });
}
}));