Remove AST_ObjectComputedKeyVal

This commit is contained in:
Anthony Van de Gejuchte
2016-10-18 16:18:34 +02:00
committed by Richard van Velzen
parent b7bb706150
commit 7e80a979a7
4 changed files with 10 additions and 31 deletions

View File

@@ -1280,7 +1280,7 @@ merge(Compressor.prototype, {
return false;
});
def(AST_ObjectProperty, function(compressor){
if (this instanceof AST_ObjectComputedKeyVal &&
if (this.key instanceof AST_ObjectKeyVal &&
this.key.has_side_effects(compressor))
return true;
return this.value.has_side_effects(compressor);