(target, source)
| 74 | }); |
| 75 | |
| 76 | const copyMethodDescriptors = (target, source) => { |
| 77 | if (source) { |
| 78 | // it is possible to use `function-double` to construct an ideal clone, but does not make a sence |
| 79 | const keys = Object.getOwnPropertyNames(source); |
| 80 | |
| 81 | keys.forEach(key => safeDefineProperty(target, key, Object.getOwnPropertyDescriptor(source, key))); |
| 82 | |
| 83 | safeDefineProperty(target, 'toString', { |
| 84 | configurable: true, |
| 85 | writable: false, |
| 86 | enumerable: false, |
| 87 | value: function toString() { |
| 88 | return String(source); |
| 89 | }, |
| 90 | }); |
| 91 | } |
| 92 | |
| 93 | return target; |
| 94 | }; |
| 95 | |
| 96 | const knownClassComponents = []; |
| 97 |
no test coverage detected