From: Feross Aboukhadijeh Date: Tue, 27 Oct 2020 21:49:13 +0000 (-1000) Subject: standard X-Git-Url: https://zoso.dev/?a=commitdiff_plain;h=c573d66c35e44d1fcfd22b71ab4b8a5fc6fdd8c3;p=buffer.git standard --- diff --git a/index.js b/index.js index 896dbca..f5a66e7 100644 --- a/index.js +++ b/index.js @@ -1156,14 +1156,14 @@ Buffer.prototype.readUIntBE = function readUIntBE (offset, byteLength, noAssert) return val } -Buffer.prototype.readUint8 = +Buffer.prototype.readUint8 = Buffer.prototype.readUInt8 = function readUInt8 (offset, noAssert) { offset = offset >>> 0 if (!noAssert) checkOffset(offset, 1, this.length) return this[offset] } -Buffer.prototype.readUint16LE = +Buffer.prototype.readUint16LE = Buffer.prototype.readUInt16LE = function readUInt16LE (offset, noAssert) { offset = offset >>> 0 if (!noAssert) checkOffset(offset, 2, this.length)