From 0f55bd92f18bd27628f1cfd10c9fb5d70f4d4d29 Mon Sep 17 00:00:00 2001 From: "Alex Lam S.L" Date: Fri, 18 Dec 2020 20:53:53 +0000 Subject: fix corner case in `arguments` (#4411) fixes #4410 --- lib/compress.js | 1 + 1 file changed, 1 insertion(+) (limited to 'lib') diff --git a/lib/compress.js b/lib/compress.js index ab68c45d..f33b97bc 100644 --- a/lib/compress.js +++ b/lib/compress.js @@ -9905,6 +9905,7 @@ merge(Compressor.prototype, { } else if (argname instanceof AST_Destructured) { argname = null; } else if (argname && (compressor.has_directive("use strict") + || fn.name || !(fn_parent instanceof AST_Call && index < fn_parent.args.length) || !all(fn.argnames, function(argname) { return !(argname instanceof AST_Destructured); -- cgit v1.2.3