(_target, prop)
| 25 | {}, |
| 26 | { |
| 27 | get(_target, prop) { |
| 28 | const instance = getSingletonInstance(); |
| 29 | // Somehow addEventListener and removeEventListner throws Illegal Invocation error without binding |
| 30 | if (prop === 'addEventListener' || prop === 'removeEventListener') { |
| 31 | return Reflect.get(instance, prop).bind(instance); |
| 32 | } |
| 33 | |
| 34 | if (prop === '__instance_for_testing') { |
| 35 | return instance; |
| 36 | } |
| 37 | |
| 38 | return Reflect.get(instance, prop, instance); |
| 39 | }, |
| 40 | set(_target, prop, value) { |
| 41 | return Reflect.set(getSingletonInstance(), prop, value); |
| 42 | }, |
nothing calls this directly
no test coverage detected