backport test from #2526 (#2534)

This commit is contained in:
Alex Lam S.L 2017-11-29 13:32:00 +08:00 committed by GitHub
parent bc5047c1e7
commit 18302bf8e9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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();
}
}
}