Skip to content

Commit fcd0f71

Browse files
deokjinkimdanielleadams
authored andcommittedJan 3, 2023
doc: fix actual result of example is different in events
Change of events internal may be not reflected yet. PR-URL: #45656 Reviewed-By: Tierney Cyren <[email protected]> Reviewed-By: Daeyeon Jeong <[email protected]>
1 parent 8336e32 commit fcd0f71

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed
 

‎doc/api/events.md

+4-3
Original file line numberDiff line numberDiff line change
@@ -68,10 +68,11 @@ myEmitter.on('event', function(a, b) {
6868
console.log(a, b, this, this === myEmitter);
6969
// Prints:
7070
// a b MyEmitter {
71-
// domain: null,
72-
// _events: { event: [Function] },
71+
// _events: [Object: null prototype] { event: [Function (anonymous)] },
7372
// _eventsCount: 1,
74-
// _maxListeners: undefined } true
73+
// _maxListeners: undefined,
74+
// [Symbol(kCapture)]: false
75+
// } true
7576
});
7677
myEmitter.emit('event', 'a', 'b');
7778
```

0 commit comments

Comments
 (0)
Please sign in to comment.