-
-
Notifications
You must be signed in to change notification settings - Fork 35.4k
fs: Add noop stub for FSWatcher.prototype.start #30160
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 2 commits
750d945
9b836a8
da2c3b3
7df938b
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -174,6 +174,12 @@ FSWatcher.prototype[kFSWatchStart] = function(filename, | |
| } | ||
| }; | ||
|
|
||
| // To maximize backword-compatiblity for the end user | ||
| // a no-op stub method has been added instead of | ||
| // totally removing FSWatcher.prototpye.start. | ||
| // This should not be documented | ||
|
lholmquist marked this conversation as resolved.
Outdated
|
||
| FSWatcher.prototype.start = () => {}; | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is it worth adding a comment explaining that this is to maximize backward-compatibility for end users but this function should not be documented? Otherwise, someone else might come along later and remove it as unused or something?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. fair point and makes sense. I'll add a little comment |
||
|
|
||
| // This method is a noop if the watcher has not been started or | ||
| // has already been closed. | ||
| FSWatcher.prototype.close = function() { | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.