This repository has been archived by the owner on Apr 22, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7.3k
docs: emitter.listeners return a copy of original array rather than an array reference #9022
Comments
https://github.com/joyent/node/blob/master/lib/events.js#L155 |
bsteephenson
added a commit
to bsteephenson/node
that referenced
this issue
Mar 3, 2015
Clarifies that emitter.listener() returns a copy, not a reference Resolves issue nodejs#9022
bsteephenson
added a commit
to bsteephenson/node
that referenced
this issue
Mar 3, 2015
Clarifies that emitter.listener() returns a copy, not a reference Resolves issue nodejs#9022
jasnell
pushed a commit
to jasnell/node-joyent
that referenced
this issue
Jun 29, 2015
Clarifies that emitter.listener() returns a copy, not a reference Resolves issue nodejs#9022
jasnell
pushed a commit
to jasnell/node-joyent
that referenced
this issue
Jul 1, 2015
Clarifies that emitter.listener() returns a copy, not a reference Resolves issue nodejs#9022
jasnell
pushed a commit
to jasnell/node-joyent
that referenced
this issue
Jul 10, 2015
Clarifies that emitter.listener() returns a copy, not a reference Resolves issue nodejs#9022 Reviewed-By: James M Snell <jasnell@gmail.com> PR-URL: nodejs#25635
jBarz
pushed a commit
to ibmruntimes/node
that referenced
this issue
Nov 4, 2016
Clarifies that emitter.listener() returns a copy, not a reference Resolves issue nodejs#9022 Reviewed-By: James M Snell <jasnell@gmail.com> PR-URL: nodejs#25591
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
As title, the document use the description
However, return an array usually indicating return an array reference, and here is different.
Maybe we can consider to modify this part of document, Thanks!
Example code
get output
0
0
1
The text was updated successfully, but these errors were encountered: