aboutsummaryrefslogtreecommitdiff
path: root/lib/compress.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/compress.js')
-rw-r--r--lib/compress.js4
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++) {