events: fix checking max listeners with `1`
authorRyunosuke SATO <tricknotes.rs@gmail.com>
Sun, 8 Jan 2012 15:53:17 +0000 (00:53 +0900)
committerkoichik <koichik@improvement.jp>
Mon, 9 Jan 2012 03:02:01 +0000 (04:02 +0100)
commit22d7fe12067be32ac456045f8f2014526e4aabb4
tree4651951401d9835ab14130d32eeb5012a40bbd18
parent9a79bb694e52ea83fd09904f0684e9f7a1c39150
events: fix checking max listeners with `1`

Fixes #2490.
lib/events.js
test/simple/test-event-emitter-check-listener-leaks.js