Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

buffer: don't pollute global namespace in buffer.readInt*

  • Loading branch information...
commit cf2513e1aaf8034162664e402267768bdaa349c1 1 parent b261e37
@psung psung authored bnoordhuis committed
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/buffer.js
View
4 lib/buffer.js
@@ -698,7 +698,7 @@ Buffer.prototype.readInt8 = function(offset, noAssert) {
};
function readInt16(buffer, offset, isBigEndian, noAssert) {
- var neg;
+ var neg, val;
if (!noAssert) {
assert.ok(typeof (isBigEndian) === 'boolean',
@@ -729,7 +729,7 @@ Buffer.prototype.readInt16BE = function(offset, noAssert) {
};
function readInt32(buffer, offset, isBigEndian, noAssert) {
- var neg;
+ var neg, val;
if (!noAssert) {
assert.ok(typeof (isBigEndian) === 'boolean',
Please sign in to comment.
Something went wrong with that request. Please try again.