MCPcopy Create free account
hub / github.com/ReactiveX/rxjs / #patch

Method #patch

packages/test/src/virtual-time.ts:779–794  ·  view source on GitHub ↗
(target: object, key: PropertyKey, value: unknown)

Source from the content-addressed store, hash-verified

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
797class VirtualNodeTimerHandle {

Callers 8

#installTimersMethod · 0.95
#installIdleCallbacksMethod · 0.95
#installImmediateMethod · 0.95
#installClocksMethod · 0.95
#installReportErrorMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected