Skip to content

Commit bc5f41e

Browse files
author
Andy
authored
Merge pull request #10227 from Microsoft/for_of
Fix loop over array to use for-of instead of for-in
2 parents 557fc38 + 4f54c6c commit bc5f41e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/harness/harness.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -750,7 +750,7 @@ namespace Harness {
750750

751751
export function readDirectory(path: string, extension?: string[], exclude?: string[], include?: string[]) {
752752
const fs = new Utils.VirtualFileSystem(path, useCaseSensitiveFileNames());
753-
for (const file in listFiles(path)) {
753+
for (const file of listFiles(path)) {
754754
fs.addFile(file);
755755
}
756756
return ts.matchFiles(path, extension, exclude, include, useCaseSensitiveFileNames(), getCurrentDirectory(), path => {

0 commit comments

Comments
 (0)