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 targos committed Dec 12, 2022
1 parent d384b73 commit 029060e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions doc/api/events.md
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 029060e

Please sign in to comment.