Skip to content

Commit 8d3e4f3

Browse files
author
Paul van Brenk
committed
cr feedback
1 parent 956a6b7 commit 8d3e4f3

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

src/compiler/sys.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ namespace ts {
6060
readFile(path: string): string;
6161
writeFile(path: string, contents: string): void;
6262
readDirectory(path: string, extension?: string, exclude?: string[]): string[];
63-
}
63+
};
6464

6565
export var sys: System = (function () {
6666

@@ -209,6 +209,7 @@ namespace ts {
209209
}
210210
};
211211
}
212+
212213
function getNodeSystem(): System {
213214
const _fs = require("fs");
214215
const _path = require("path");
@@ -469,10 +470,11 @@ namespace ts {
469470
}
470471
};
471472
}
473+
472474
function getChakraSystem(): System {
473475

474476
return {
475-
newLine: '\r\n',
477+
newLine: "\r\n",
476478
args: ChakraHost.args,
477479
useCaseSensitiveFileNames: false,
478480
write(message: string) {
@@ -516,6 +518,7 @@ namespace ts {
516518
}
517519
};
518520
}
521+
519522
if (typeof WScript !== "undefined" && typeof ActiveXObject === "function") {
520523
return getWScriptSystem();
521524
}

0 commit comments

Comments
 (0)