The _activeListenerCount variable is overkill, we should be able to achieve the same result using Object.keys(this._listeners).length.
Details
Details
- Reviewers
epriestley - Group Reviewers
Blessed Reviewers - Commits
- Restricted Diffusion Commit
rP279a0e53717e: Don't explicitly keep track of `_activeListenerCount` in the Aphlict server.
Mucked around in a NodeJS shell.
> Object.keys({}).length 0 > Object.keys({foo: 'bar'}).length 1 > Object.keys({1: 'foo', 2: 'bar'}).length 2
Diff Detail
Diff Detail
- Repository
- rP Phabricator
- Lint
Lint Skipped - Unit
Tests Skipped