Use sys.newLine in transpile when possibel

This commit is contained in:
Mohamed Hegazy 2015-04-06 14:05:44 -07:00
parent c53b0a5016
commit ccb562385d

View file

@ -1680,7 +1680,7 @@ module ts {
useCaseSensitiveFileNames: () => false,
getCanonicalFileName: fileName => fileName,
getCurrentDirectory: () => "",
getNewLine: () => "\r\n"
getNewLine: () => (sys && sys.newLine) || "\r\n"
};
var program = createProgram([inputFileName], options, compilerHost);