mirror of
https://github.com/nodejs/node.git
synced 2026-11-27 17:52:27 -05:00
doc: make EventEmitterAsyncResource's options as optional
Refs: https://github.com/nodejs/node/blob/main/lib/events.js#L140 PR-URL: https://github.com/nodejs/node/pull/45985 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
This commit is contained in:
1 parent
3b93b0c1f5
commit
86b2c8cea2
1 file changed
+1
-1
+1
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user