(method, handler)
| 383 | }); |
| 384 | }, |
| 385 | on(method, handler) { |
| 386 | const handlers = eventHandlers.get(method) ?? new Set(); |
| 387 | handlers.add(handler); |
| 388 | eventHandlers.set(method, handlers); |
| 389 | }, |
| 390 | off(method, handler) { |
| 391 | const handlers = eventHandlers.get(method); |
| 392 | if (!handlers) return; |
no outgoing calls
no test coverage detected