We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2486836 commit 8d0913bCopy full SHA for 8d0913b
lib/internal/js_stream_socket.js
@@ -149,6 +149,7 @@ class JSStreamSocket extends Socket {
149
}
150
151
const handle = this._handle;
152
+ assert(handle !== null);
153
154
process.nextTick(() => {
155
// Ensure that write is dispatched asynchronously.
@@ -181,6 +182,8 @@ class JSStreamSocket extends Socket {
181
182
183
184
185
186
+
187
const self = this;
188
189
let pending = bufs.length;
0 commit comments