Permalink
Browse files

in FastBufferList.js updating a check to see if an object is a buffer…

… instance to use the proper API for that.
  • Loading branch information...
1 parent 86a4f93 commit f2c6eadb81a21c1739f47a781dc17130fc19c93d @theturtle32 committed Dec 18, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 vendor/FastBufferList.js
View
@@ -53,7 +53,7 @@ function BufferList(opts) {
};
self.end = function (buf) {
- if (buf instanceof Buffer) self.write(buf);
+ if (Buffer.isBuffer(buf)) self.write(buf);
};
// Push buffers to the end of the linked list. (deprecated)

0 comments on commit f2c6ead

Please sign in to comment.