MCPcopy Create free account
hub / github.com/angular/dev-infra / get

Function get

ng-dev/utils/git/github.ts:73–86  ·  view source on GitHub ↗
(targetObj, prop, receiver)

Source from the content-addressed store, hash-verified

71function createRetryProxy<T extends object>(target: T): T {
72 return new Proxy(target, {
73 get(targetObj, prop, receiver) {
74 const value = Reflect.get(targetObj, prop, receiver);
75 if (typeof value === 'function') {
76 return new Proxy(value, {
77 apply(targetFn, thisArg, argArray) {
78 return invokeWithRetry(() => (targetFn as Function).apply(targetObj, argArray));
79 },
80 });
81 }
82 if (typeof value === 'object' && value !== null) {
83 return createRetryProxy(value);
84 }
85 return value;
86 },
87 apply(targetFn, thisArg, argArray) {
88 return invokeWithRetry(() => (targetFn as Function).apply(thisArg, argArray));
89 },

Callers

nothing calls this directly

Calls 2

createRetryProxyFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected