Make SlowBuffer pass Buffer.isBuffer test.

pull/22966/head
Stéphan Kochen 2010-11-18 19:30:47 +01:00 committed by Ryan Dahl
parent 6ff12c425e
commit 57eb5cb9a0
1 changed files with 1 additions and 1 deletions

View File

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