MCPcopy Index your code
hub / github.com/di-sukharev/opencommit / getWrapper

Function getWrapper

out/cli.cjs:10081–10091  ·  view source on GitHub ↗
(proto2)

Source from the content-addressed store, hash-verified

10079 return CustomEvent;
10080 }
10081 function getWrapper(proto2) {
10082 if (proto2 == null || proto2 === Object.prototype) {
10083 return Event2;
10084 }
10085 let wrapper = wrappers.get(proto2);
10086 if (wrapper == null) {
10087 wrapper = defineWrapper(getWrapper(Object.getPrototypeOf(proto2)), proto2);
10088 wrappers.set(proto2, wrapper);
10089 }
10090 return wrapper;
10091 }
10092 function wrapEvent(eventTarget, event) {
10093 const Wrapper = getWrapper(Object.getPrototypeOf(event));
10094 return new Wrapper(eventTarget, event);

Callers 1

wrapEventFunction · 0.85

Calls 3

defineWrapperFunction · 0.85
getMethod · 0.45
setMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…