| 65978 | if (!canCopyProperty(toDescriptor, fromDescriptor) && ignoreNonConfigurable) { |
| 65979 | return; |
| 65980 | } |
| 65981 | Object.defineProperty(to, property, fromDescriptor); |
| 65982 | }; |
| 65983 | var canCopyProperty = function(toDescriptor, fromDescriptor) { |
| 65984 | return toDescriptor === void 0 || toDescriptor.configurable || toDescriptor.writable === fromDescriptor.writable && toDescriptor.enumerable === fromDescriptor.enumerable && toDescriptor.configurable === fromDescriptor.configurable && (toDescriptor.writable || toDescriptor.value === fromDescriptor.value); |
| 65985 | }; |
| 65986 | var changePrototype = (to, from) => { |
| 65987 | const fromPrototype = Object.getPrototypeOf(from); |
| 65988 | if (fromPrototype === Object.getPrototypeOf(to)) { |
| 65989 | return; |