From 57eb5cb9a0e2a1ca64599101422df3a1a9ec37df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phan=20Kochen?= Date: Thu, 18 Nov 2010 19:30:47 +0100 Subject: [PATCH] Make SlowBuffer pass Buffer.isBuffer test. --- lib/buffer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/buffer.js b/lib/buffer.js index 176a8fda781..d2b87ecdb96 100644 --- a/lib/buffer.js +++ b/lib/buffer.js @@ -166,7 +166,7 @@ function allocPool () { // Static methods Buffer.isBuffer = function isBuffer(b) { - return b instanceof Buffer; + return b instanceof Buffer || b instanceof SlowBuffer; };