joyent/node — pull request #8130 by JacksonTian (2014-08-11 08:09:25+00:00)
Title: events: use emitter.listeners for listenerCount

Call `emitter.listeners(type).length` directly will simplify `EventEmitter.listenerCount(emitter, type)`.