Lines Matching refs:event
91 // The EventEmitterAsyncResource has to be initialized lazily because event.js
156 * @param {symbol,string} event
160 emit(event, ...args) {
164 ArrayPrototypeUnshift(args, super.emit, this, event);
406 * Increases the max listeners of the event emitter.
425 * Returns the current max listener value for the event emitter.
441 const sep = `\nEmitted 'error' event${ctorInfo} at:\n`;
459 * for the event.
475 // If there is no 'error' event listener then throw.
495 throw er; // Unhandled 'error' event
508 throw err; // Unhandled 'error' event
603 * Adds a listener to the event emitter.
645 * Adds a one-time `listener` function to the event emitter.
732 * Removes all listeners from the event emitter. (Only
733 * removes listeners for a specific event name if specified
802 * Returns a copy of the array of listeners for the event name
813 * the event name specified as `type`.
822 * Returns the number of listeners listening to the event name
839 * Returns the number of listeners listening to event name
910 * Returns a copy of the array of listeners for the event name
921 // Require event target lazily to avoid always loading it
959 * emits the given event.
992 // EventTarget does not have `error` event semantics like Node
1040 * Returns an `AsyncIterator` that iterates `event` events.
1042 * @param {string | symbol} event
1046 function on(emitter, event, options = kEmptyObject) {
1080 // Wait until an event happens
1087 eventTargetAgnosticRemoveListener(emitter, event, eventHandler);
1113 eventTargetAgnosticRemoveListener(emitter, event, eventHandler);
1122 eventTargetAgnosticAddListener(emitter, event, eventHandler);
1123 if (event !== 'error' && typeof emitter.on === 'function') {