(eventName: string | Symbol)
| 26 | }; |
| 27 | |
| 28 | const eventNameToString = function (eventName: string | Symbol) { |
| 29 | if (typeof eventName === 'string') { |
| 30 | return eventName; |
| 31 | } |
| 32 | if (!eventName) { |
| 33 | return ''; |
| 34 | } |
| 35 | return eventName.toString().replace('(', '_').replace(')', '_'); |
| 36 | }; |
| 37 | |
| 38 | function patchEventEmitterMethods(obj: any) { |
| 39 | const result = patchEventTarget(global, api, [obj], { |
no test coverage detected
searching dependent graphs…