Merge pull request #10260 from zhengbli/fixSession

Avoid using the global name
This commit is contained in:
Zhengbo Li 2016-08-10 15:13:56 -07:00 committed by GitHub
commit e16326de8b

View file

@ -106,7 +106,7 @@ namespace ts.server {
describe("onMessage", () => {
it("should not throw when commands are executed with invalid arguments", () => {
let i = 0;
for (name in CommandNames) {
for (const name in CommandNames) {
if (!Object.prototype.hasOwnProperty.call(CommandNames, name)) {
continue;
}