diff --git a/lib/net.js b/lib/net.js index a97da67f3b2..d0a4c641bf4 100644 --- a/lib/net.js +++ b/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');