From 3c44618836b22bf95eb1539539c9df12c3a0de8a Mon Sep 17 00:00:00 2001 From: Deokjin Kim Date: Tue, 6 Dec 2022 14:05:58 +0900 Subject: [PATCH] doc: fix actual result of example is different in events Change of events internal may be not reflected yet. PR-URL: https://github.com/nodejs/node/pull/45656 Reviewed-By: Tierney Cyren Reviewed-By: Daeyeon Jeong --- doc/api/events.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/doc/api/events.md b/doc/api/events.md index 2c56fcc088e086..c377c3e71fe3e5 100644 --- a/doc/api/events.md +++ b/doc/api/events.md @@ -68,10 +68,11 @@ myEmitter.on('event', function(a, b) { console.log(a, b, this, this === myEmitter); // Prints: // a b MyEmitter { - // domain: null, - // _events: { event: [Function] }, + // _events: [Object: null prototype] { event: [Function (anonymous)] }, // _eventsCount: 1, - // _maxListeners: undefined } true + // _maxListeners: undefined, + // [Symbol(kCapture)]: false + // } true }); myEmitter.emit('event', 'a', 'b'); ```