From 77c8fdc7c0f19ce1d235c6ccf48278a4d3fd774c Mon Sep 17 00:00:00 2001 From: Feross Aboukhadijeh Date: Thu, 11 Sep 2014 20:48:05 +0100 Subject: [PATCH] export TYPED_ARRAY_SUPPORT for typedarray-to-buffer --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.34.1