diff options
author | Alex Lam S.L <alexlamsl@gmail.com> | 2018-01-13 02:46:14 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-01-13 02:46:14 +0800 |
commit | e49416e4aaba8d057eefd8d4250fd2ba6c7a4e04 (patch) | |
tree | 49dfbb9dbd037ee7fb35af422a17135afbe29396 /lib/compress.js | |
parent | d4d7d99b70da46303aff3152cec197c371596d0b (diff) | |
download | tracifyjs-e49416e4aaba8d057eefd8d4250fd2ba6c7a4e04.tar.gz tracifyjs-e49416e4aaba8d057eefd8d4250fd2ba6c7a4e04.zip |
fix `reduce_vars` on `AST_Accessor` (#2776)
fixes #2774
Diffstat (limited to 'lib/compress.js')
-rw-r--r-- | lib/compress.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/compress.js b/lib/compress.js index 21d79b08..b35e453c 100644 --- a/lib/compress.js +++ b/lib/compress.js @@ -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; |