From: Feross Aboukhadijeh Date: Thu, 11 Sep 2014 19:48:05 +0000 (+0100) Subject: export TYPED_ARRAY_SUPPORT for typedarray-to-buffer X-Git-Url: https://zoso.dev/?a=commitdiff_plain;h=77c8fdc7c0f19ce1d235c6ccf48278a4d3fd774c;p=buffer.git export TYPED_ARRAY_SUPPORT for typedarray-to-buffer --- diff --git a/index.js b/index.js index 0d0d638..9b3d1c7 100644 --- a/index.js +++ b/index.js @@ -35,7 +35,7 @@ Buffer.poolSize = 8192 * We detect these buggy browsers and set `TYPED_ARRAY_SUPPORT` to `false` so they will * get the Object implementation, which is slower but will work correctly. */ -var TYPED_ARRAY_SUPPORT = (function () { +var TYPED_ARRAY_SUPPORT = Buffer.TYPED_ARRAY_SUPPORT = (function () { try { var buf = new ArrayBuffer(0) var arr = new Uint8Array(buf)