Merge pull request #10227 from Microsoft/for_of

Fix loop over array to use for-of instead of for-in
This commit is contained in:
Andy 2016-08-10 06:07:06 -07:00 committed by GitHub
commit bc5f41ebe4

View file

@ -750,7 +750,7 @@ namespace Harness {
export function readDirectory(path: string, extension?: string[], exclude?: string[], include?: string[]) {
const fs = new Utils.VirtualFileSystem(path, useCaseSensitiveFileNames());
for (const file in listFiles(path)) {
for (const file of listFiles(path)) {
fs.addFile(file);
}
return ts.matchFiles(path, extension, exclude, include, useCaseSensitiveFileNames(), getCurrentDirectory(), path => {