MCPcopy Create free account
hub / github.com/gaearon/react-hot-loader / methodWrapperFactory

Function methodWrapperFactory

src/proxy/createClassProxy.js:160–164  ·  view source on GitHub ↗
(wrapperName, realMethod)

Source from the content-addressed store, hash-verified

158 }
159
160 function methodWrapperFactory(wrapperName, realMethod) {
161 return copyMethodDescriptors(function wrappedMethod(...rest) {
162 return realMethod.apply(this, rest);
163 }, realMethod);
164 }
165
166 const fakeBasePrototype = Proto =>
167 filteredPrototypeMethods(Proto).reduce((acc, key) => {

Callers 1

fakeBasePrototypeFunction · 0.85

Calls 1

copyMethodDescriptorsFunction · 0.85

Tested by

no test coverage detected