Skip to content

Commit

Permalink
Make SlowBuffer pass Buffer.isBuffer test.
Browse files Browse the repository at this point in the history
  • Loading branch information
Stéphan Kochen authored and ry committed Nov 18, 2010
1 parent 6ff12c4 commit 57eb5cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/buffer.js
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ function allocPool () {

// Static methods
Buffer.isBuffer = function isBuffer(b) {
return b instanceof Buffer;
return b instanceof Buffer || b instanceof SlowBuffer;
};


Expand Down

0 comments on commit 57eb5cb

Please sign in to comment.