Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
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...
commit f2c6eadb81a21c1739f47a781dc17130fc19c93d 1 parent 86a4f93
@theturtle32 authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  vendor/FastBufferList.js
View
2  vendor/FastBufferList.js
@@ -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)
Please sign in to comment.
Something went wrong with that request. Please try again.