minor clean up
This commit is contained in:
parent
01ee71a1dd
commit
127ab175f0
|
|
@ -2374,7 +2374,8 @@ merge(Compressor.prototype, {
|
|||
}
|
||||
return node;
|
||||
}
|
||||
if (node instanceof AST_Definitions && !(tt.parent() instanceof AST_ForIn && tt.parent().init === node)) {
|
||||
var parent = tt.parent();
|
||||
if (node instanceof AST_Definitions && !(parent instanceof AST_ForIn && parent.init === node)) {
|
||||
// place uninitialized names at the start
|
||||
var body = [], head = [], tail = [];
|
||||
// for unused names whose initialization has
|
||||
|
|
@ -2466,7 +2467,7 @@ merge(Compressor.prototype, {
|
|||
&& !((def = def.definition()).id in in_use_ids)
|
||||
&& self.variables.get(def.name) === def) {
|
||||
if (node instanceof AST_Assign) {
|
||||
return maintain_this_binding(tt.parent(), node, node.right.transform(tt));
|
||||
return maintain_this_binding(parent, node, node.right.transform(tt));
|
||||
}
|
||||
return make_node(AST_Number, node, {
|
||||
value: 0
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user