From 4133d16290e187c4e1d864a28e3ba123fb86897f Mon Sep 17 00:00:00 2001 From: Bryan Ashby Date: Sun, 14 Jan 2024 15:52:24 -0700 Subject: [PATCH] Add missing function --- core/events.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/events.js b/core/events.js index 717b5c183..3b6ed8448 100644 --- a/core/events.js +++ b/core/events.js @@ -23,6 +23,10 @@ module.exports = new (class Events extends events.EventEmitter { return super.addListener(event, listener); } + listenerCount(event, listener) { + return super.listenerCount(event, listener); + } + emit(event, ...args) { Log.trace({ event: event }, 'Emitting event'); return super.emit(event, ...args);