fix corner case in ie8 & mangle (#4196)

fixes #4195
This commit is contained in:
Alex Lam S.L
2020-10-12 05:43:26 +01:00
committed by GitHub
parent 74ff6ce261
commit 9b7a13c8c7
2 changed files with 35 additions and 6 deletions

View File

@@ -747,3 +747,32 @@ issue_4193: {
}
expect_stdout: true
}
issue_4195: {
mangle = {
ie8: true,
}
input: {
console.log(function f(a) {
(function a() {
{
const b = f, a = 0;
b;
}
})();
a && f;
}());
}
expect: {
console.log(function f(o) {
(function o() {
{
const n = f, o = 0;
n;
}
})();
o && f;
}());
}
expect_stdout: "undefined"
}