(target: object, key: PropertyKey, value: unknown)
| 777 | } |
| 778 | |
| 779 | #patch(target: object, key: PropertyKey, value: unknown): void { |
| 780 | const hadOwnProperty = Object.prototype.hasOwnProperty.call(target, key); |
| 781 | const descriptor = Object.getOwnPropertyDescriptor(target, key); |
| 782 | this.#patches.push({ |
| 783 | target, |
| 784 | key, |
| 785 | hadOwnProperty, |
| 786 | descriptor, |
| 787 | }); |
| 788 | Object.defineProperty(target, key, { |
| 789 | configurable: true, |
| 790 | enumerable: descriptor?.enumerable ?? false, |
| 791 | writable: true, |
| 792 | value, |
| 793 | }); |
| 794 | } |
| 795 | } |
| 796 | |
| 797 | class VirtualNodeTimerHandle { |
no outgoing calls
no test coverage detected