mirror of https://github.com/nodejs/node.git
net: fix asserts
Fixes a 'Converting circular structure to JSON' TypeError.pull/24503/head
parent
1597ce0eb3
commit
422772f23b
|
@ -375,7 +375,7 @@ Socket.prototype.destroy = function(exception) {
|
||||||
function onread(buffer, offset, length) {
|
function onread(buffer, offset, length) {
|
||||||
var handle = this;
|
var handle = this;
|
||||||
var self = handle.owner;
|
var self = handle.owner;
|
||||||
assert.equal(handle, self._handle);
|
assert(handle === self._handle, 'handle != self._handle');
|
||||||
|
|
||||||
timers.active(self);
|
timers.active(self);
|
||||||
|
|
||||||
|
@ -722,7 +722,7 @@ function afterConnect(status, handle, req, readable, writable) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
assert.equal(handle, self._handle);
|
assert(handle === self._handle, 'handle != self._handle');
|
||||||
|
|
||||||
debug('afterConnect');
|
debug('afterConnect');
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue