Files
node/doc/api
Joyee Cheung cd8f06f64f fs: do not crash when using a closed fs event watcher
Before this commit, when the user calls methods on a closed or
errored fs event watcher, they could hit a crash since the
FSEventWrap in C++ land may have already been destroyed with
the internal pointer set to nullptr. This commit makes sure
that the user cannot hit crashes like that, instead the
methods calling on a closed watcher will be noops.

Also explicitly documents that the watchers should not be used
in `close` and `error` event handlers.

PR-URL: https://github.com/nodejs/node/pull/20985
Fixes: https://github.com/nodejs/node/issues/20738
Fixes: https://github.com/nodejs/node/issues/20297
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Ron Korving <ron@ronkorving.nl>
Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com>
2018-06-03 17:15:17 +02:00
..
2018-05-11 14:58:54 -07:00
2018-05-23 19:08:39 -04:00
2018-05-03 02:12:07 +03:00
2018-05-03 02:12:07 +03:00
2018-05-23 19:08:39 -04:00
2018-05-03 02:12:07 +03:00
2018-05-03 02:12:07 +03:00
2018-05-03 02:12:07 +03:00
2018-06-01 23:54:18 +02:00
2018-05-03 02:12:07 +03:00
2018-05-08 13:28:38 +03:00
2018-05-22 11:42:33 +04:00
2018-05-14 23:05:09 +03:00
2016-04-20 16:34:27 -07:00
2018-04-29 17:48:43 +03:00
2018-05-03 02:12:07 +03:00
2018-05-31 18:59:26 +02:00
2018-05-03 02:12:07 +03:00
2018-04-04 13:45:39 +03:00
2018-05-03 02:12:07 +03:00
2018-05-03 02:12:07 +03:00
2018-05-04 23:05:56 +03:00
2018-05-03 02:12:07 +03:00
2018-05-02 06:17:08 +03:00
2018-05-03 02:12:07 +03:00
2018-05-03 02:12:07 +03:00
2018-06-01 11:23:06 +02:00