From cf2513e1aaf8034162664e402267768bdaa349c1 Mon Sep 17 00:00:00 2001 From: Phil Sung Date: Wed, 21 Dec 2011 17:38:12 -0800 Subject: [PATCH] buffer: don't pollute global namespace in buffer.readInt* --- lib/buffer.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/buffer.js b/lib/buffer.js index ebeab7d522..a0210b9b87 100644 --- a/lib/buffer.js +++ b/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',