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.
This commit is contained in:
Ruben Bridgewater 2018-03-10 22:09:23 +01:00
parent 94d38f941e
commit 3f1d7b9bc6
No known key found for this signature in database
GPG Key ID: F07496B3EB3C1762

View File

@ -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
}