le ${moduleName} does not support event ${event}` ); } } /** * Instance shortcut for supportsMethod to avoid reaching the constructor for * consumers which directly deal with an instance. */ supportsMethod(methodName) { return this.constructor.supportsMethod(methodName); } get messageHandler() { return this.#messageHandler; } static get supportedEvents() { return []; } static supportsEvent(event) { return this.supportedEvents.includes(event); } static supportsMethod(methodName) { return typeof this.prototype[methodName] === "function"; } get moduleName() { return this.#moduleName; } set moduleName(name) { this.#moduleName = name; } } PK