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

Function defineHandleReading

lib/internal/tls/wrap.js:866–876  ·  view source on GitHub ↗
(socket, handle)

Source from the content-addressed store, hash-verified

864// This eliminates a cyclic reference to TLSWrap
865// Ref: https://github.com/nodejs/node/commit/f7620fb96d339f704932f9bb9a0dceb9952df2d4
866function defineHandleReading(socket, handle) {
867 ObjectDefineProperty(handle, 'reading', {
868 __proto__: null,
869 get: () => {
870 return socket[kRes].reading;
871 },
872 set: (value) => {
873 socket[kRes].reading = value;
874 },
875 });
876}
877
878function onSocketCloseDestroySSL() {
879 // Make sure we are not doing it on OpenSSL's stack

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…