From 197dfa8ce31b7ad9ba59c958b2bf0d4de090b5ac Mon Sep 17 00:00:00 2001 From: Feross Aboukhadijeh Date: Thu, 12 Dec 2013 12:13:56 -0800 Subject: [PATCH] style --- index.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/index.js b/index.js index 133d967..0127d34 100644 --- a/index.js +++ b/index.js @@ -1011,10 +1011,9 @@ function augment (arr) { arr.fill = BufferFill arr.inspect = BufferInspect - // Only add `toArrayBuffer` if we're using an augmented native Uint8Array - if (xUint8Array !== TA.Uint8Array) { + // Only add `toArrayBuffer` if the browser supports ArrayBuffer natively + if (xUint8Array !== TA.Uint8Array) arr.toArrayBuffer = BufferToArrayBuffer - } if (arr.byteLength !== 0) arr._dataview = new xDataView(arr.buffer, arr.byteOffset, arr.byteLength) -- 2.34.1