Skip to content

Commit e16326d

Browse files
authored
Merge pull request #10260 from zhengbli/fixSession
Avoid using the global name
2 parents 2f6f74d + 56cb07a commit e16326d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/harness/unittests/session.ts

+1-1
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)