return true;
return false;
});
- def(AST_Dot, function(){
- return this.expression.has_side_effects();
- });
- def(AST_Sub, function(){
- return this.expression.has_side_effects()
- || this.property.has_side_effects();
+ // def(AST_Dot, function(){
+ // return this.expression.has_side_effects();
+ // });
+ // def(AST_Sub, function(){
+ // return this.expression.has_side_effects()
+ // || this.property.has_side_effects();
+ // });
+ def(AST_PropAccess, function(){
+ return true;
});
def(AST_Seq, function(){
return this.car.has_side_effects()
AST_Seq.DEFMETHOD("optimize", function(compressor){
var self = this;
- if (self.cdr instanceof AST_Seq)
- self.cdr = self.cdr.optimize(compressor);
if (compressor.option("cascade")) {
+ if (self.cdr instanceof AST_Seq)
+ self.cdr = self.cdr.optimize(compressor);
if (self.car instanceof AST_Assign
&& !self.car.left.has_side_effects()
&& self.car.left.equivalent_to(self.cdr)) {