Skip to content

Commit eb0b944

Browse files
authored
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: #64605 Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
1 parent d046fb4 commit eb0b944

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎doc/api/fs.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2243,9 +2243,9 @@ added:
22432243
should stop.
22442244
* `maxQueue` {number} Specifies the number of events to queue between iterations
22452245
of the {AsyncIterator} returned. **Default:** `2048`.
2246-
* `overflow` {string} Either `'ignore'` or `'throw'` when there are more events to be
2246+
* `overflow` {string} Either `'ignore'` or `'error'` when there are more events to be
22472247
queued than `maxQueue` allows. `'ignore'` means overflow events are dropped and a
2248-
warning is emitted, while `'throw'` means to throw an exception. **Default:** `'ignore'`.
2248+
warning is emitted, while `'error'` means to throw an exception. **Default:** `'ignore'`.
22492249
* `ignore` {string|RegExp|Function|Array} Pattern(s) to ignore. Strings are
22502250
glob patterns (using [`minimatch`][]), RegExp patterns are tested against
22512251
the filename, and functions receive the filename and return `true` to

0 commit comments

Comments
 (0)