aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/compress.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/compress.js b/lib/compress.js
index 1c49ee79..6bc5d3b4 100644
--- a/lib/compress.js
+++ b/lib/compress.js
@@ -3776,7 +3776,8 @@ merge(Compressor.prototype, {
def(AST_Null, return_true);
def(AST_Object, function(compressor, force) {
return is_strict(compressor, force) && !all(this.properties, function(prop) {
- return prop instanceof AST_ObjectKeyVal;
+ if (!(prop instanceof AST_ObjectKeyVal)) return false;
+ return !(prop.key == "__proto__" && prop.value._dot_throw(compressor, force));
});
});
def(AST_ObjectIdentity, function(compressor, force) {