(obj: any, prop: string)
| 25 | } |
| 26 | |
| 27 | function canPatchOnProperty(obj: any, prop: string) { |
| 28 | const func = function () { |
| 29 | if (!obj) { |
| 30 | return false; |
| 31 | } |
| 32 | const desc = Object.getOwnPropertyDescriptor(obj, prop); |
| 33 | if (!desc || !desc.configurable) { |
| 34 | return false; |
| 35 | } |
| 36 | return true; |
| 37 | }; |
| 38 | |
| 39 | (func as any).message = 'patchOnProperties'; |
| 40 | return func; |
| 41 | } |
| 42 | |
| 43 | let supportsPassive = false; |
| 44 | try { |
no outgoing calls
no test coverage detected
searching dependent graphs…