MCPcopy
hub / github.com/di-sukharev/opencommit / getSameObject

Function getSameObject

out/cli.cjs:2747–2756  ·  view source on GitHub ↗
(wrapper, prop, creator)

Source from the content-addressed store, hash-verified

2745 return ctorRegistry;
2746 }
2747 function getSameObject(wrapper, prop, creator) {
2748 if (!wrapper[sameObjectCaches]) {
2749 wrapper[sameObjectCaches] = /* @__PURE__ */ Object.create(null);
2750 }
2751 if (prop in wrapper[sameObjectCaches]) {
2752 return wrapper[sameObjectCaches][prop];
2753 }
2754 wrapper[sameObjectCaches][prop] = creator();
2755 return wrapper[sameObjectCaches][prop];
2756 }
2757 function wrapperForImpl(impl) {
2758 return impl ? impl[wrapperSymbol] : null;
2759 }

Callers

nothing calls this directly

Calls 1

createMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…