Skip to content

Commit

Permalink
pass undefined instead of null to string.toBuffer (node 8 compat)
Browse files Browse the repository at this point in the history
  • Loading branch information
lipp committed Sep 26, 2017
1 parent c94ca93 commit d5ed191
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/jet/message-socket.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ var MessageSocket = function (port, ip) {
last = bigBuf
return
} else {
self.emit('message', bigBuf.toString(null, 0, len))
self.emit('message', bigBuf.toString(undefined, 0, len))
bigBuf = bigBuf.slice(len)
len = -1
}
Expand Down

0 comments on commit d5ed191

Please sign in to comment.