events: remove misleading comment
This commit is contained in:
parent
c945eae942
commit
f065c87bcf
@ -94,8 +94,6 @@ EventEmitter.prototype.emit = function() {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
// EventEmitter is defined in src/node_events.cc
|
|
||||||
// EventEmitter.prototype.emit() is also defined there.
|
|
||||||
EventEmitter.prototype.addListener = function(type, listener) {
|
EventEmitter.prototype.addListener = function(type, listener) {
|
||||||
if ('function' !== typeof listener) {
|
if ('function' !== typeof listener) {
|
||||||
throw new Error('addListener only takes instances of Function');
|
throw new Error('addListener only takes instances of Function');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user