File tree Expand file tree Collapse file tree 4 files changed +0
-14
lines changed Expand file tree Collapse file tree 4 files changed +0
-14
lines changed Original file line number Diff line number Diff line change @@ -1044,9 +1044,6 @@ var ts;
10441044 readFile: readFile,
10451045 writeFile: writeFile,
10461046 watchFile: function (fileName, callback) {
1047- if (isNode4OrLater()) {
1048- return _fs.watch(fileName, function (eventName, relativeFileName) { return callback(fileName); });
1049- }
10501047 var watchedFile = watchedFileSet.addFile(fileName, callback);
10511048 return {
10521049 close: function () { return watchedFileSet.removeFile(watchedFile); }
Original file line number Diff line number Diff line change @@ -1044,9 +1044,6 @@ var ts;
10441044 readFile: readFile,
10451045 writeFile: writeFile,
10461046 watchFile: function (fileName, callback) {
1047- if (isNode4OrLater()) {
1048- return _fs.watch(fileName, function (eventName, relativeFileName) { return callback(fileName); });
1049- }
10501047 var watchedFile = watchedFileSet.addFile(fileName, callback);
10511048 return {
10521049 close: function () { return watchedFileSet.removeFile(watchedFile); }
Original file line number Diff line number Diff line change @@ -1947,10 +1947,6 @@ var ts;
19471947 // and is more efficient than `fs.watchFile` (ref: https://github.com/nodejs/node/pull/2649
19481948 // and https://github.com/Microsoft/TypeScript/issues/4643), therefore
19491949 // if the current node.js version is newer than 4, use `fs.watch` instead.
1950- if (isNode4OrLater()) {
1951- // Note: in node the callback of fs.watch is given only the relative file name as a parameter
1952- return _fs.watch(fileName, function (eventName, relativeFileName) { return callback(fileName); });
1953- }
19541950 var watchedFile = watchedFileSet.addFile(fileName, callback);
19551951 return {
19561952 close: function () { return watchedFileSet.removeFile(watchedFile); }
Original file line number Diff line number Diff line change @@ -1947,10 +1947,6 @@ var ts;
19471947 // and is more efficient than `fs.watchFile` (ref: https://github.com/nodejs/node/pull/2649
19481948 // and https://github.com/Microsoft/TypeScript/issues/4643), therefore
19491949 // if the current node.js version is newer than 4, use `fs.watch` instead.
1950- if (isNode4OrLater()) {
1951- // Note: in node the callback of fs.watch is given only the relative file name as a parameter
1952- return _fs.watch(fileName, function (eventName, relativeFileName) { return callback(fileName); });
1953- }
19541950 var watchedFile = watchedFileSet.addFile(fileName, callback);
19551951 return {
19561952 close: function () { return watchedFileSet.removeFile(watchedFile); }
You can’t perform that action at this time.
0 commit comments