Skip to content

Commit 952e03a

Browse files
deokjinkimRafaelGSS
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 <[email protected]> Reviewed-By: Yagiz Nizipli <[email protected]>
1 parent f968fdb commit 952e03a

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)