Lines Matching defs:on
220 module.exports.on = on;
368 // that throws on second use.
437 ctorInfo = ` on ${name} instance`;
493 // Note: The comments on the `throw` lines are intentional, they show
612 EventEmitter.prototype.on = EventEmitter.prototype.addListener;
653 this.on(type, _onceWrap(this, type, listener));
758 // Emit removeListener for all listeners on all events
993 // EventEmitters, we listen to `error` events only on EventEmitters.
1026 if (typeof emitter.on === 'function') {
1030 emitter.on(name, listener);
1046 function on(emitter, event, options = kEmptyObject) {
1123 if (event !== 'error' && typeof emitter.on === 'function') {
1124 emitter.on('error', errorHandler);