aboutsummaryrefslogtreecommitdiff
path: root/lib/compress.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/compress.js')
-rw-r--r--lib/compress.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/compress.js b/lib/compress.js
index 07916323..adae9338 100644
--- a/lib/compress.js
+++ b/lib/compress.js
@@ -8322,7 +8322,8 @@ merge(Compressor.prototype, {
var argname = fn.argnames[index];
if (def.deleted && def.deleted[index]) {
argname = null;
- } else if (argname && compressor.has_directive("use strict")) {
+ } else if (argname && (compressor.has_directive("use strict")
+ || !(fn_parent instanceof AST_Call && index < fn_parent.args.length))) {
var arg_def = argname.definition();
if (!compressor.option("reduce_vars")
|| def.reassigned