reset optimisation flags on all node types
This commit is contained in:
parent
9c17f2f5e3
commit
a64ac1a586
|
|
@ -260,10 +260,8 @@ merge(Compressor.prototype, {
|
|||
}
|
||||
});
|
||||
var tw = new TreeWalker(function(node, descend){
|
||||
if (!(node instanceof AST_Directive || node instanceof AST_Constant)) {
|
||||
node._squeezed = false;
|
||||
node._optimized = false;
|
||||
}
|
||||
if (reduce_vars) {
|
||||
if (node instanceof AST_Toplevel) node.globals.each(reset_def);
|
||||
if (node instanceof AST_Scope) node.variables.each(reset_def);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user