fix join_vars property assignment for negative array index (#2810)

fixes #2790
This commit is contained in:
kzc
2018-01-18 08:52:54 -05:00
committed by Alex Lam S.L
parent b335912e86
commit 983e69128b
2 changed files with 205 additions and 1 deletions

View File

@@ -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();