From: Feross Aboukhadijeh Date: Thu, 9 Feb 2017 03:25:08 +0000 (-0800) Subject: remove unneeded property access X-Git-Url: https://zoso.dev/?a=commitdiff_plain;h=1291d94286b1307cc739864fce616d16f50178b7;p=buffer.git remove unneeded property access --- diff --git a/index.js b/index.js index a7017e9..c6bfc10 100644 --- a/index.js +++ b/index.js @@ -216,8 +216,6 @@ function fromArrayLike (array) { } function fromArrayBuffer (array, byteOffset, length) { - array.byteLength // this throws if `array` is not a valid ArrayBuffer - if (byteOffset < 0 || array.byteLength < byteOffset) { throw new RangeError('\'offset\' is out of bounds') }