fix corner case in keep_fargs (#5477)

fixes #5476
This commit is contained in:
Alex Lam S.L
2022-05-29 05:10:19 +01:00
committed by GitHub
parent 2152f00de2
commit 8bc03dc6c4
4 changed files with 45 additions and 7 deletions

View File

@@ -2020,3 +2020,23 @@ issue_5338: {
expect_stdout: ReferenceError("a is not defined")
node_version: ">=4"
}
issue_5476: {
mangle = {
keep_fargs: true,
}
input: {
"use strict";
console.log(function(n) {
let a;
}());
}
expect: {
"use strict";
console.log(function(n) {
let o;
}());
}
expect_stdout: "undefined"
node_version: ">=4"
}