diff options
author | Alex Lam S.L <alexlamsl@gmail.com> | 2020-11-26 17:31:06 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-27 01:31:06 +0800 |
commit | af1cca25bf3c29aa925bbe2a164786ebcf7dd476 (patch) | |
tree | af68a1f7f244df485c35a6b6c78b7f259ecde685 /lib/compress.js | |
parent | 9b3a3636048a59518166e5afa7686a445bcf70f6 (diff) | |
download | tracifyjs-af1cca25bf3c29aa925bbe2a164786ebcf7dd476.tar.gz tracifyjs-af1cca25bf3c29aa925bbe2a164786ebcf7dd476.zip |
fix corner case in `inline` (#4320)
fixes #4319
Diffstat (limited to 'lib/compress.js')
-rw-r--r-- | lib/compress.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/compress.js b/lib/compress.js index 0e585e17..1d729096 100644 --- a/lib/compress.js +++ b/lib/compress.js @@ -4612,7 +4612,9 @@ merge(Compressor.prototype, { for (var j = 0; j < len; j++) { var arg = call.args[j]; if (!(arg instanceof AST_SymbolRef)) break; - if (arg.definition() !== self.argnames[j].definition()) break; + var argname = self.argnames[j]; + if (!(argname instanceof AST_SymbolFunarg)) break; + if (arg.definition() !== argname.definition()) break; } if (j < len) break; for (; j < call.args.length; j++) { |