From fd02407680d24b183ec02a5bbdde4784c7a508f1 Mon Sep 17 00:00:00 2001 From: tonetheman Date: Fri, 8 May 2015 10:05:45 -0500 Subject: [PATCH] fixed case where there is a Buffer but it does not has isBuffer defined --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 7684d23..a8f0851 100644 --- a/index.js +++ b/index.js @@ -25,7 +25,7 @@ function hasBinary(data) { function _hasBinary(obj) { if (!obj) return false; - if ( (global.Buffer && global.Buffer.isBuffer(obj)) || + if ( (global.Buffer && global.Buffer.isBuffer && global.Buffer.isBuffer(obj)) || (global.ArrayBuffer && obj instanceof ArrayBuffer) || (global.Blob && obj instanceof Blob) || (global.File && obj instanceof File)