diff options
author | Joyee Cheung <joyeec9h3@gmail.com> | 2018-03-14 13:55:43 +0300 |
---|---|---|
committer | Joyee Cheung <joyeec9h3@gmail.com> | 2018-03-19 02:40:39 +0300 |
commit | 301f6cc553bd73cfa345ae7de6ee81655efc57d0 (patch) | |
tree | e0bb361a50db4340d4cd43a8f720beb5f66f39fb /src/node_stat_watcher.cc | |
parent | 897cec43c67d036f631e0538a8172a5a8f759611 (diff) |
fs: remove watcher state errors for fs.watch
- Remove ERR_FS_WATCHER_ALREADY_STARTED and
ERR_FS_WATCHER_NOT_STARTED because those two situations should
result in noop instead of errors for consistency with the
documented behavior of fs.watchFile.
This partially reverts https://github.com/nodejs/node/pull/19089
- Update comments about this behavior.
Refs: https://github.com/nodejs/node/pull/19089
PR-URL: https://github.com/nodejs/node/pull/19345
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Michaƫl Zasso <targos@protonmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Diffstat (limited to 'src/node_stat_watcher.cc')
0 files changed, 0 insertions, 0 deletions