Browse Source

Make SlowBuffer pass Buffer.isBuffer test.

v0.7.4-release
Stéphan Kochen 14 years ago
committed by Ryan Dahl
parent
commit
57eb5cb9a0
  1. 2
      lib/buffer.js

2
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;
};

Loading…
Cancel
Save