aboutsummaryrefslogtreecommitdiff
path: root/lib/compress.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/compress.js')
-rw-r--r--lib/compress.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/compress.js b/lib/compress.js
index cfe37d0b..f3fc5e0e 100644
--- a/lib/compress.js
+++ b/lib/compress.js
@@ -5074,6 +5074,9 @@ merge(Compressor.prototype, {
&& right.properties.length > 0
&& all(right.properties, function(prop) {
return prop instanceof AST_ObjectKeyVal;
+ })
+ && all(def.references, function(ref) {
+ return ref.fixed_value() === right;
});
}
});