This commit is contained in:
alexlamsl 2018-01-07 12:51:48 +08:00
parent 0ce389fd2a
commit dfc06fdf4f

View File

@ -1906,7 +1906,7 @@ duplicate_arg_var: {
expect_stdout: "PASS" expect_stdout: "PASS"
} }
issue_2737: { issue_2737_1: {
options = { options = {
inline: true, inline: true,
reduce_vars: true, reduce_vars: true,
@ -1928,3 +1928,26 @@ issue_2737: {
} }
expect_stdout: "function" expect_stdout: "function"
} }
issue_2737_2: {
options = {
inline: true,
reduce_vars: true,
unused: true,
}
input: {
(function(bar) {
for (;bar(); ) break;
})(function qux() {
return console.log("PASS"), qux;
});
}
expect: {
(function(bar) {
for (;bar(); ) break;
})(function qux() {
return console.log("PASS"), qux;
});
}
expect_stdout: "PASS"
}