Skip to content

Commit

Permalink
Merge pull request #6071 from zhengbli/port6066to17
Browse files Browse the repository at this point in the history
Port #6066 to release-1.7 branch
  • Loading branch information
zhengbli committed Dec 12, 2015
2 parents 1aee5e1 + 64cd995 commit 5192bc5
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/compiler/sys.ts
Original file line number Diff line number Diff line change
Expand Up @@ -392,11 +392,6 @@ namespace ts {
// and is more efficient than `fs.watchFile` (ref: https://github.com/nodejs/node/pull/2649
// and https://github.com/Microsoft/TypeScript/issues/4643), therefore
// if the current node.js version is newer than 4, use `fs.watch` instead.
if (isNode4OrLater()) {
// Note: in node the callback of fs.watch is given only the relative file name as a parameter
return _fs.watch(fileName, (eventName: string, relativeFileName: string) => callback(fileName));
}

let watchedFile = watchedFileSet.addFile(fileName, callback);
return {
close: () => watchedFileSet.removeFile(watchedFile)
Expand Down

0 comments on commit 5192bc5

Please sign in to comment.