Skip to content

Commit 750d945

Browse files
committed
fs: Add noop stub for FSWatcher.prototype.start
* Motivation: In a previous PR, nodejs#29905, I made this method a private method since it had no value to the user. There was discussion that maybe it should have been a runtime deprecation first, but was ultimatley decided that for this type of method, a noop stub was a better option. This Adds back in the method, but as a noop stub, while also keeping the real implementation private
1 parent 1d89c5d commit 750d945

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

lib/internal/fs/watchers.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,8 @@ FSWatcher.prototype[kFSWatchStart] = function(filename,
174174
}
175175
};
176176

177+
FSWatcher.prototype.start = () => {};
178+
177179
// This method is a noop if the watcher has not been started or
178180
// has already been closed.
179181
FSWatcher.prototype.close = function() {

0 commit comments

Comments
 (0)