aboutsummaryrefslogtreecommitdiff
path: root/lib/compress.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/compress.js')
-rw-r--r--lib/compress.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/compress.js b/lib/compress.js
index 3e70f2eb..fb5bcb74 100644
--- a/lib/compress.js
+++ b/lib/compress.js
@@ -10118,6 +10118,7 @@ merge(Compressor.prototype, {
}
if (found && !generated && typeof key == "string" && /^[0-9]+$/.test(key)) {
generated = true;
+ if (keys.has(key)) prop = keys.get(key)[0];
prop.key = make_node(AST_Number, prop, {
value: +key
});