Skip to content

Commit

Permalink
doc: fix actual result of example is different in events
Browse files Browse the repository at this point in the history
Change of events internal may be not reflected yet.

PR-URL: #45656
Reviewed-By: Tierney Cyren <hello@bnb.im>
Reviewed-By: Daeyeon Jeong <daeyeon.dev@gmail.com>
  • Loading branch information
deokjinkim authored and danielleadams committed Jan 3, 2023
1 parent 8336e32 commit fcd0f71
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions doc/api/events.md
Original file line number Diff line number Diff line change
Expand Up @@ -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');
```
Expand Down

0 comments on commit fcd0f71

Please sign in to comment.