Comparing version 5.31.2 to 5.31.3
# Changelog | ||
## v5.31.3 | ||
- drop_unused: drop unused parameters from IIFEs in some more situations. | ||
## v5.31.2 | ||
@@ -4,0 +7,0 @@ - drop_unused: scan variables in self-referential class declarations that contain side effects. |
@@ -48,2 +48,3 @@ /*********************************************************************** | ||
AST_BlockStatement, | ||
AST_Call, | ||
AST_Class, | ||
@@ -260,3 +261,9 @@ AST_ClassExpression, | ||
if (node instanceof AST_Lambda && !(node instanceof AST_Accessor)) { | ||
var trim = !compressor.option("keep_fargs"); | ||
var trim = | ||
!compressor.option("keep_fargs") | ||
// Is this an IIFE that won't refer to its name? | ||
|| parent instanceof AST_Call | ||
&& parent.expression === node | ||
&& !node.pinned() | ||
&& (!node.name || node.name.unreferenced()); | ||
for (var a = node.argnames, i = a.length; --i >= 0;) { | ||
@@ -263,0 +270,0 @@ var sym = a[i]; |
@@ -7,3 +7,3 @@ { | ||
"license": "BSD-2-Clause", | ||
"version": "5.31.2", | ||
"version": "5.31.3", | ||
"engines": { | ||
@@ -10,0 +10,0 @@ "node": ">=10" |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2193800
62685