backport test from #2526

This commit is contained in:
alexlamsl 2017-11-29 06:05:30 +08:00
parent 206a54a746
commit 26a01a5c52

View File

@ -4525,3 +4525,21 @@ issue_2485: {
}
expect_stdout: "6"
}
issue_2455: {
options = {
reduce_vars: true,
unused: true,
}
input: {
function foo() {
var that = this;
for (;;) that.bar();
}
}
expect: {
function foo() {
for (;;) this.bar();
}
}
}