fix join_vars property assignment for negative array index (#2810)
fixes #2790
This commit is contained in:
@@ -1746,7 +1746,7 @@ merge(Compressor.prototype, {
|
||||
}
|
||||
if (prop instanceof AST_Node) break;
|
||||
def.value.properties.push(make_node(AST_ObjectKeyVal, node, {
|
||||
key: prop,
|
||||
key: "" + prop,
|
||||
value: node.right
|
||||
}));
|
||||
exprs.shift();
|
||||
|
||||
Reference in New Issue
Block a user