Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fix generic 'data' event

  • Loading branch information...
commit 144db9258a3df4f6c255f2ad0efa36d2286242c3 1 parent 4ea1e40
Jann Horn authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/net.js
2  lib/net.js
View
@@ -349,7 +349,7 @@ function onread(buffer, offset, length) {
var data = buffer.slice(offset, end);
if (Socket.genericEmitter != null) {
- Socket.genericEmitter.emit(self, 'data', data);
+ Socket.genericEmitter.emit('data', self, data);
}
if (self._decoder) {
Please sign in to comment.
Something went wrong with that request. Please try again.