implement keep_fargs for mangle (#5307)

closes #4657
This commit is contained in:
Alex Lam S.L
2022-01-20 21:13:26 +00:00
committed by GitHub
parent efed55f42d
commit e24b255350
20 changed files with 507 additions and 267 deletions

View File

@@ -976,10 +976,10 @@ issue_4454_2: {
f("PASS");
}
expect: {
function f(b) {
(function*(c = console.log(b)) {})();
var b = 42..toString();
console.log(b);
function f(a) {
(function*(c = console.log(a)) {})();
var a = 42..toString();
console.log(a);
}
f("PASS");
}
@@ -1289,9 +1289,9 @@ issue_5032_normal: {
console.log(value);
return value;
}
function *f(c) {
var b = log(c), c = b;
log(b);
function *f(a) {
var a = log(a), c = a;
log(a);
log(c);
}
f("PASS").next();