From ccfbf97e6f6abab29fc698da752034d2d937a42f Mon Sep 17 00:00:00 2001 From: Oleg Nechaev Date: Tue, 25 May 2021 19:07:32 +0200 Subject: [PATCH] fix for dropping unused default argument assignment --- lib/compress.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/compress.js b/lib/compress.js index 08b0f0d1..18467909 100644 --- a/lib/compress.js +++ b/lib/compress.js @@ -6342,7 +6342,7 @@ merge(Compressor.prototype, { } else if (trim) { log(sym.name, "Dropping unused default argument {name}"); argnames.pop(); - } else if (i > default_length) { + } else if (i >= default_length) { log(sym.name, "Dropping unused default argument assignment {name}"); sym.name.__unused = true; argnames[i] = sym.name;