Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix long line in buffertools.js

  • Loading branch information...
commit 02c9433cc3158acf5871a248e7b122e896b3f6e5 1 parent 83bf5b0
Ben Noordhuis authored
Showing with 5 additions and 2 deletions.
  1. +5 −2 buffertools.js
7 buffertools.js
View
@@ -7,8 +7,11 @@ events = require('events');
util = require('util');
// extend object prototypes
-for (var property in buffertools) {
- exports[property] = Buffer.prototype[property] = SlowBuffer.prototype[property] = buffertools[property];
+for (var key in buffertools) {
+ var val = buffertools[key];
+ SlowBuffer.prototype[key] = val;
+ Buffer.prototype[key] = val;
+ exports[key] = val;
}
// bug fix, see https://github.com/bnoordhuis/node-buffertools/issues/#issue/6
Please sign in to comment.
Something went wrong with that request. Please try again.