From 489dad0e1edc79b292b0d27beb5785a457e29522 Mon Sep 17 00:00:00 2001 From: Feross Aboukhadijeh Date: Mon, 21 Jul 2014 23:07:36 -0700 Subject: [PATCH] firefox 3-3.6, ie6-8: use shim instead of Array.isArray --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 1955cbc..73516cd 100644 --- a/index.js +++ b/index.js @@ -62,7 +62,7 @@ function Buffer (subject, encoding, noZero) { subject = base64clean(subject) length = Buffer.byteLength(subject, encoding) } else if (type === 'object' && subject !== null) { // assume object is array-like - if (subject.type === 'Buffer' && Array.isArray(subject.data)) + if (subject.type === 'Buffer' && isArray(subject.data)) subject = subject.data length = +subject.length > 0 ? Math.floor(+subject.length) : 0 } else -- 2.34.1