MCPcopy Index your code
hub / github.com/nodejs/node / makeMethodProxy

Function makeMethodProxy

lib/internal/tls/wrap.js:740–745  ·  view source on GitHub ↗
(name)

Source from the content-addressed store, hash-verified

738
739// Proxy HandleWrap, PipeWrap and TCPWrap methods
740function makeMethodProxy(name) {
741 return function methodProxy(...args) {
742 if (this._parent[name])
743 return ReflectApply(this._parent[name], this._parent, args);
744 };
745}
746for (const proxiedMethod of proxiedMethods) {
747 tls_wrap.TLSWrap.prototype[proxiedMethod] =
748 makeMethodProxy(proxiedMethod);

Callers 1

wrap.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…