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

Function protoGetter

lib/net.js:1085–1092  ·  view source on GitHub ↗
(name, callback)

Source from the content-addressed store, hash-verified

1083};
1084
1085function protoGetter(name, callback) {
1086 ObjectDefineProperty(Socket.prototype, name, {
1087 __proto__: null,
1088 configurable: false,
1089 enumerable: true,
1090 get: callback,
1091 });
1092}
1093
1094protoGetter('bytesRead', function bytesRead() {
1095 return this._handle ? this._handle.bytesRead : this[kBytesRead];

Callers 1

net.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…