Commit ee9cd004 authored by Ben Noordhuis's avatar Ben Noordhuis
Browse files

lib: fix TypeError with EventEmitter#on() abuse

Commit 29313483 added EventEmitter#getMaxListeners() but introduced a
regression when people abuse EventEmitter.prototype.on.call() to call
EventEmitter#on() on a non-EE object.  Add a workaround for that.

Fixes: https://github.com/iojs/io.js/issues/523
PR-URL: https://github.com/iojs/io.js/pull/527


Reviewed-By: default avatarColin Ihrig <cjihrig@gmail.com>
parent 77d68070
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment