enhance unused (#3617)

This commit is contained in:
Alex Lam S.L
2019-12-01 18:10:37 +08:00
committed by GitHub
parent 0593892d6e
commit e915832a36
7 changed files with 62 additions and 44 deletions

View File

@@ -815,9 +815,9 @@ issue_1583: {
}
expect: {
function m(t) {
(function(e) {
(function() {
(function() {
return (function(a) {
return (function() {
return function(a) {};
})();
})();
@@ -1329,7 +1329,7 @@ issue_2226_2: {
}(1, 2));
}
expect: {
console.log(function(a, b) {
console.log(function(a) {
return a += 2;
}(1));
}
@@ -1349,7 +1349,7 @@ issue_2226_3: {
}(1, 2));
}
expect: {
console.log(function(a, b) {
console.log(function(a) {
return a += 2;
}(1));
}
@@ -1702,11 +1702,11 @@ chained_3: {
}(1, 2));
}
expect: {
console.log(function(a, b) {
console.log(function(b) {
var c = b;
b++;
return c;
}(0, 2));
}(2));
}
expect_stdout: "2"
}