diff options
author | kzc <kzc@users.noreply.github.com> | 2018-01-18 08:52:54 -0500 |
---|---|---|
committer | Alex Lam S.L <alexlamsl@gmail.com> | 2018-01-18 21:52:54 +0800 |
commit | 983e69128b0e6da78d71ad9b77d798f31a10ca44 (patch) | |
tree | ec21b8d28967546b16787499ed42e2843644ae77 /lib | |
parent | b335912e8690469044b89ccf93ac9dec11b273f7 (diff) | |
download | tracifyjs-983e69128b0e6da78d71ad9b77d798f31a10ca44.tar.gz tracifyjs-983e69128b0e6da78d71ad9b77d798f31a10ca44.zip |
fix `join_vars` property assignment for negative array index (#2810)
fixes #2790
Diffstat (limited to 'lib')
-rw-r--r-- | lib/compress.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/compress.js b/lib/compress.js index 64178227..89056796 100644 --- a/lib/compress.js +++ b/lib/compress.js @@ -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(); |