computed properties

This commit is contained in:
Fábio Santos
2015-09-07 22:46:07 +01:00
parent b14496c742
commit b31918bbf0
5 changed files with 42 additions and 0 deletions

View File

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