vars.set(def.name.name, def);
++vars_found;
});
- var seq = node.to_assignments();
+ var seq = node.to_assignments(compressor);
var p = tt.parent();
if (p instanceof AST_ForIn && p.init === node) {
if (seq == null) {
this.definitions.forEach(function(def){ def.value = null });
});
- AST_Definitions.DEFMETHOD("to_assignments", function(){
+ AST_Definitions.DEFMETHOD("to_assignments", function(compressor){
+ var reduce_vars = compressor.option("reduce_vars");
var assignments = this.definitions.reduce(function(a, def){
if (def.value) {
var name = make_node(AST_SymbolRef, def.name, def.name);
left : name,
right : def.value
}));
+ if (reduce_vars) name.definition().fixed = false;
}
return a;
}, []);