Skip to content

Commit 86b2c8c

Browse files
deokjinkimjuanarbol
authored andcommitted
doc: make EventEmitterAsyncResource's options as optional
Refs: https://github.com/nodejs/node/blob/main/lib/events.js#L140 PR-URL: #45985 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
1 parent 3b93b0c commit 86b2c8c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/api/events.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1548,7 +1548,7 @@ Promise.resolve().then(() => {
15481548
The `EventEmitterAsyncResource` class has the same methods and takes the
15491549
same options as `EventEmitter` and `AsyncResource` themselves.
15501550

1551-
### `new events.EventEmitterAsyncResource(options)`
1551+
### `new events.EventEmitterAsyncResource([options])`
15521552

15531553
* `options` {Object}
15541554
* `captureRejections` {boolean} It enables

0 commit comments

Comments
 (0)