Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

events: fix: shared object references #25467

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions doc/api/events.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,10 @@ Execute each of the listeners in order with the supplied arguments.

Returns `true` if event had listeners, `false` otherwise.

**Note:** Objects are passed by reference, meaning that the same object can be
passed to multiple listeners. If a listener needs to modify a shared object, a
copy of the object should be made.


### Class Method: EventEmitter.listenerCount(emitter, event)

Expand Down