★ wanayoo — archive 1999 https://github.com/nodejs/node/pull/26031Nouvelle recherche | Portail wanayoo
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: use emitter.listenerCount() in test-http-connect #26031

Closed
wants to merge 1 commit into from

Conversation

Projects
None yet
5 participants
@lpinca
Copy link
Member

commented Feb 10, 2019

Use emitter.listenerCount() instead of the length property of the
array returned by emitter.listeners().

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • commit message follows commit guidelines
test: use emitter.listenerCount() in test-http-connect
Use `emitter.listenerCount()` instead of the `length` property of the
array returned by `emitter.listeners()`.
@lpinca

This comment has been minimized.

Copy link
Member Author

commented Feb 10, 2019

I understand this has very little value but using ee.listeners('foo').length when ee.listenerCount('foo') exists, triggers my OCD.

It's ok if this is not accepted.

@danbev

danbev approved these changes Feb 13, 2019

@danbev

This comment has been minimized.

@addaleax

This comment has been minimized.

Copy link
Member

commented Feb 13, 2019

Landed in 2b090c1

@addaleax addaleax closed this Feb 13, 2019

addaleax added a commit that referenced this pull request Feb 13, 2019

test: use emitter.listenerCount() in test-http-connect
Use `emitter.listenerCount()` instead of the `length` property of the
array returned by `emitter.listeners()`.

PR-URL: #26031
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>

@lpinca lpinca deleted the lpinca:fix/ocd branch Feb 14, 2019

targos added a commit that referenced this pull request Feb 14, 2019

test: use emitter.listenerCount() in test-http-connect
Use `emitter.listenerCount()` instead of the `length` property of the
array returned by `emitter.listeners()`.

PR-URL: #26031
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>

@targos targos referenced this pull request Feb 14, 2019

Merged

v11.10.0 proposal #26098

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.