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