Skip to content

Commit

Permalink
doc: actual result is different from specified one in events
Browse files Browse the repository at this point in the history
Change of events internal may be not reflected yet.
  • Loading branch information
deokjinkim committed Nov 28, 2022
1 parent d09f0c4 commit 1ed643b
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 1ed643b

Please sign in to comment.