Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

net: fix asserts

Fixes a 'Converting circular structure to JSON' TypeError.
  • Loading branch information...
commit 422772f23bea12a878d4e61418066576895bfef6 1 parent 1597ce0
@bnoordhuis bnoordhuis authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/net.js
View
4 lib/net.js
@@ -375,7 +375,7 @@ Socket.prototype.destroy = function(exception) {
function onread(buffer, offset, length) {
var handle = this;
var self = handle.owner;
- assert.equal(handle, self._handle);
+ assert(handle === self._handle, 'handle != self._handle');
timers.active(self);
@@ -722,7 +722,7 @@ function afterConnect(status, handle, req, readable, writable) {
return;
}
- assert.equal(handle, self._handle);
+ assert(handle === self._handle, 'handle != self._handle');
debug('afterConnect');
Please sign in to comment.
Something went wrong with that request. Please try again.