diff options
author | Alex Lam S.L <alexlamsl@gmail.com> | 2019-05-21 12:55:34 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-05-21 12:55:34 +0800 |
commit | b9053c7a25ff1ad86345e0196437671609756afa (patch) | |
tree | c47811ee41e1654ce5648e5e370863e9e5dd735d /lib/compress.js | |
parent | d357a7aabc7512e53ff135c917b05997e5158a2d (diff) | |
download | tracifyjs-b9053c7a25ff1ad86345e0196437671609756afa.tar.gz tracifyjs-b9053c7a25ff1ad86345e0196437671609756afa.zip |
fix corner case in `keep_fargs` (#3424)
fixes #3423
Diffstat (limited to 'lib/compress.js')
-rw-r--r-- | lib/compress.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/compress.js b/lib/compress.js index e1f0105c..e99ce508 100644 --- a/lib/compress.js +++ b/lib/compress.js @@ -108,7 +108,7 @@ function Compressor(options, false_by_default) { this.drop_fargs = keep_fargs == "strict" ? function(lambda, parent) { if (lambda.length_read) return false; var name = lambda.name; - if (!name) return parent && parent.TYPE == "Call"; + if (!name) return parent && parent.TYPE == "Call" && parent.expression === lambda; if (name.fixed_value() !== lambda) return false; var def = name.definition(); if (def.direct_access) return false; |