Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Commit

Permalink
net: fix asserts
Browse files Browse the repository at this point in the history
Fixes a 'Converting circular structure to JSON' TypeError.
  • Loading branch information
bnoordhuis committed Aug 23, 2012
1 parent 1597ce0 commit 422772f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/net.js
Expand Up @@ -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);

Expand Down Expand Up @@ -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');

Expand Down

0 comments on commit 422772f

Please sign in to comment.