Make SlowBuffer pass Buffer.isBuffer test.

This commit is contained in:
Stéphan Kochen 2010-11-18 19:30:47 +01:00 committed by Ryan Dahl
parent 6ff12c425e
commit 57eb5cb9a0

View File

@ -166,7 +166,7 @@ function allocPool () {
// Static methods
Buffer.isBuffer = function isBuffer(b) {
return b instanceof Buffer;
return b instanceof Buffer || b instanceof SlowBuffer;
};