From 5ab74c873e72ced605607d8809437c021c141fdf Mon Sep 17 00:00:00 2001 From: Matt Radbourne <1254508+mradbourne@users.noreply.github.com> Date: Sun, 19 Jul 2026 20:43:08 +0100 Subject: [PATCH] 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> --- doc/api/fs.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/api/fs.md b/doc/api/fs.md index 9cb84007b3b815..d39b63f284dda1 100644 --- a/doc/api/fs.md +++ b/doc/api/fs.md @@ -2203,9 +2203,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