(ptarget, prop, descriptor)
| 995 | }, |
| 996 | |
| 997 | defineProperty(ptarget, prop, descriptor) { |
| 998 | // Forward the defineProperty to the target to maintain Proxy invariants |
| 999 | // This allows Object.seal() and Object.freeze() to work on the proxy |
| 1000 | const result = Reflect.defineProperty(ptarget, prop, descriptor) |
| 1001 | if (result && `value` in descriptor) { |
| 1002 | changeTracker.copy_[prop as keyof T] = deepClone(descriptor.value) |
| 1003 | changeTracker.assigned_[prop.toString()] = true |
| 1004 | markChanged(changeTracker) |
| 1005 | } |
| 1006 | return result |
| 1007 | }, |
| 1008 | |
| 1009 | getOwnPropertyDescriptor(ptarget, prop) { |
| 1010 | // Forward to target to maintain Proxy invariants for seal/freeze |
nothing calls this directly
no test coverage detected
searching dependent graphs…