From 86b2c8cea22b2bc24fc403575b3f90a27b98a91e Mon Sep 17 00:00:00 2001 From: Deokjin Kim Date: Tue, 27 Dec 2022 22:00:30 +0900 Subject: [PATCH] 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 Reviewed-By: Yagiz Nizipli --- doc/api/events.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/api/events.md b/doc/api/events.md index 7ddd624dd95645..68ad79e7a62d41 100644 --- a/doc/api/events.md +++ b/doc/api/events.md @@ -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