Skip to content

Commit 56cb07a

Browse files
author
zhengbli
committed
avoid using the global name
1 parent 2f6f74d commit 56cb07a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/harness/unittests/session.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ namespace ts.server {
106106
describe("onMessage", () => {
107107
it("should not throw when commands are executed with invalid arguments", () => {
108108
let i = 0;
109-
for (name in CommandNames) {
109+
for (const name in CommandNames) {
110110
if (!Object.prototype.hasOwnProperty.call(CommandNames, name)) {
111111
continue;
112112
}

0 commit comments

Comments
 (0)