mirror of https://github.com/nodejs/node.git
Make SlowBuffer pass Buffer.isBuffer test.
parent
6ff12c425e
commit
57eb5cb9a0
|
@ -166,7 +166,7 @@ function allocPool () {
|
|||
|
||||
// Static methods
|
||||
Buffer.isBuffer = function isBuffer(b) {
|
||||
return b instanceof Buffer;
|
||||
return b instanceof Buffer || b instanceof SlowBuffer;
|
||||
};
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue