use writeSync instead of stdout.write to make sure that stream is flushed
This commit is contained in:
parent
349367d991
commit
6e7c95b817
1 changed files with 2 additions and 7 deletions
|
@ -106,9 +106,6 @@ var sys: System = (function () {
|
||||||
write(s: string): void {
|
write(s: string): void {
|
||||||
WScript.StdOut.Write(s);
|
WScript.StdOut.Write(s);
|
||||||
},
|
},
|
||||||
writeErr(s: string): void {
|
|
||||||
WScript.StdErr.Write(s);
|
|
||||||
},
|
|
||||||
readFile: readFile,
|
readFile: readFile,
|
||||||
writeFile: writeFile,
|
writeFile: writeFile,
|
||||||
resolvePath(path: string): string {
|
resolvePath(path: string): string {
|
||||||
|
@ -195,10 +192,8 @@ var sys: System = (function () {
|
||||||
newLine: _os.EOL,
|
newLine: _os.EOL,
|
||||||
useCaseSensitiveFileNames: useCaseSensitiveFileNames,
|
useCaseSensitiveFileNames: useCaseSensitiveFileNames,
|
||||||
write(s: string): void {
|
write(s: string): void {
|
||||||
process.stdout.write(s);
|
// 1 is a standard descriptor for stdout
|
||||||
},
|
_fs.writeSync(1, s);
|
||||||
writeErr(s: string): void {
|
|
||||||
process.stderr.write(s);
|
|
||||||
},
|
},
|
||||||
readFile: readFile,
|
readFile: readFile,
|
||||||
writeFile: writeFile,
|
writeFile: writeFile,
|
||||||
|
|
Loading…
Reference in a new issue