aboutsummaryrefslogtreecommitdiff
path: root/lib/compress.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/compress.js')
-rw-r--r--lib/compress.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/compress.js b/lib/compress.js
index 1862fd10..27b080bb 100644
--- a/lib/compress.js
+++ b/lib/compress.js
@@ -10051,7 +10051,9 @@ merge(Compressor.prototype, {
found = true;
var exp = prop.expression;
if (compressor.option("spread") && exp instanceof AST_Object && all(exp.properties, function(prop) {
- return !(prop instanceof AST_ObjectGetter || prop instanceof AST_Spread);
+ return !(prop instanceof AST_ObjectGetter
+ || prop instanceof AST_ObjectSetter && prop.key instanceof AST_Node
+ || prop instanceof AST_Spread);
})) {
changed = true;
exp.properties.forEach(function(prop) {