From fe647b083e0def2bf6445534c7017baed09541a9 Mon Sep 17 00:00:00 2001 From: "Alex Lam S.L" Date: Tue, 17 Oct 2017 01:18:55 +0800 Subject: account for side-effects from `AST_This` in `collapse_vars` (#2365) --- lib/compress.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'lib/compress.js') diff --git a/lib/compress.js b/lib/compress.js index c3876f9d..5e391aba 100644 --- a/lib/compress.js +++ b/lib/compress.js @@ -950,9 +950,11 @@ merge(Compressor.prototype, { scope = save_scope; return true; } - if (node instanceof AST_SymbolRef || node instanceof AST_PropAccess) { + if (node instanceof AST_PropAccess + || node instanceof AST_SymbolRef + || node instanceof AST_This) { var sym = get_symbol(node); - if (sym instanceof AST_SymbolRef) { + if (sym instanceof AST_SymbolRef || node instanceof AST_This) { lvalues[sym.name] = lvalues[sym.name] || is_lhs(node, tw.parent()); } } -- cgit v1.2.3 2b8c8949e51e4'>refslogtreecommitdiff
path: root/nix/libutil/affinity.cc
AgeCommit message (Expand)Author