From ab064d12b79d14a3d02ba420138cc9d24169a951 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 ce36bb7dbcd05a..42c5f94b119088 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'); ```