fix reduce_vars on AST_Accessor (#2776)

fixes #2774
This commit is contained in:
Alex Lam S.L
2018-01-13 02:46:14 +08:00
committed by GitHub
parent d4d7d99b70
commit e49416e4aa
2 changed files with 28 additions and 1 deletions

View File

@@ -467,8 +467,9 @@ merge(Compressor.prototype, {
if (node instanceof AST_SymbolRef) d.references.push(node);
d.fixed = false;
});
def(AST_Accessor, function(tw, descend) {
def(AST_Accessor, function(tw, descend, compressor) {
push(tw);
reset_variables(tw, compressor, this);
descend();
pop(tw);
return true;