doc: fix fsPromises.watch overflow value

Updates the fsPromises.watch overflow option description to use 'error'
instead of 'throw', which matches the implementation.

Signed-off-by: Matt Radbourne <1254508+mradbourne@users.noreply.github.com>
PR-URL: https://github.com/nodejs/node/pull/64605
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
This commit is contained in:
Matt Radbourne authored and Antoine du Hamel committed 2026-09-08 22:03:28 +02:00
1 parent 3d06ff19e8
commit 788904ff78
1 file changed
+2 -2
+2 -2
View File
@@ -2224,9 +2224,9 @@ added:
should stop.
* `maxQueue` {number} Specifies the number of events to queue between iterations
of the {AsyncIterator} returned. **Default:** `2048`.
* `overflow` {string} Either `'ignore'` or `'throw'` when there are more events to be
* `overflow` {string} Either `'ignore'` or `'error'` when there are more events to be
queued than `maxQueue` allows. `'ignore'` means overflow events are dropped and a
warning is emitted, while `'throw'` means to throw an exception. **Default:** `'ignore'`.
warning is emitted, while `'error'` means to throw an exception. **Default:** `'ignore'`.
* `ignore` {string|RegExp|Function|Array} Pattern(s) to ignore. Strings are
glob patterns (using [`minimatch`][]), RegExp patterns are tested against
the filename, and functions receive the filename and return `true` to