aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAlex Lam S.L <alexlamsl@gmail.com>2018-05-26 05:45:44 +0800
committerGitHub <noreply@github.com>2018-05-26 05:45:44 +0800
commitefa21ae3e6c7399913f98cc01f8888bf6158ae49 (patch)
treef5956d15659212d63cbee8b6bbc851cc0f82b851 /lib
parent24d9633a355ff0fac64dee2b356b99661079e921 (diff)
downloadtracifyjs-efa21ae3e6c7399913f98cc01f8888bf6158ae49.tar.gz
tracifyjs-efa21ae3e6c7399913f98cc01f8888bf6158ae49.zip
fix corner case in `reduce_vars` (#3151)
Diffstat (limited to 'lib')
-rw-r--r--lib/compress.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/compress.js b/lib/compress.js
index ebb2d408..1832f7a8 100644
--- a/lib/compress.js
+++ b/lib/compress.js
@@ -388,7 +388,6 @@ merge(Compressor.prototype, {
tw.defun_ids[def.id] = false;
}
});
- return true;
};
}
@@ -565,7 +564,7 @@ merge(Compressor.prototype, {
return true;
});
def(AST_Call, function(tw, descend) {
- if (tw.find_parent(AST_Scope).may_call_this()) return;
+ tw.find_parent(AST_Scope).may_call_this();
var exp = this.expression;
if (!(exp instanceof AST_SymbolRef)) return;
var def = exp.definition();