Skip to content

Commit

Permalink
doc: make EventEmitterAsyncResource's options as optional
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
deokjinkim authored and RafaelGSS committed Jan 4, 2023
1 parent 943cb8e commit 22d528a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/api/events.md
Original file line number Diff line number Diff line change
Expand Up @@ -1548,7 +1548,7 @@ Promise.resolve().then(() => {
The `EventEmitterAsyncResource` class has the same methods and takes the
same options as `EventEmitter` and `AsyncResource` themselves.

### `new events.EventEmitterAsyncResource(options)`
### `new events.EventEmitterAsyncResource([options])`

* `options` {Object}
* `captureRejections` {boolean} It enables
Expand Down

0 comments on commit 22d528a

Please sign in to comment.