From 3f1d7b9bc64d8b5c40822e1c9366e4a6fb9103fa Mon Sep 17 00:00:00 2001 From: Ruben Bridgewater Date: Sat, 10 Mar 2018 22:09:23 +0100 Subject: [PATCH] Remove `noAssert` argument The support for the `noAssert` argument dropped in the upcoming Node.js v.10.x. All input is then validated no matter if this is set to true or not. Just remove the argument because of that. --- lib/connection.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/connection.js b/lib/connection.js index 7b7a8abf..49121aed 100644 --- a/lib/connection.js +++ b/lib/connection.js @@ -617,13 +617,13 @@ Connection.prototype.parsed = function (buffer, length) { } Connection.prototype.parseInt32 = function (buffer) { - var value = buffer.readInt32BE(this.offset, true) + var value = buffer.readInt32BE(this.offset) this.offset += 4 return value } Connection.prototype.parseInt16 = function (buffer) { - var value = buffer.readInt16BE(this.offset, true) + var value = buffer.readInt16BE(this.offset) this.offset += 2 return value }