fs.watch throws exception when recursive is used in incompatible platform
This pull request makes fs.watch throw exception whenever it is used in an incompatible platform. For this change following changes were made to api:
- A new error type has been introduced.
- fs.watch has been changed accordingly.
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
tests and/or benchmarks are included -
documentation is changed or added -
commit message follows commit guidelines
Solves #29901 (closed) This is a breaking change.