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

This commit is contained in:
Phil Sung 2011-12-21 17:38:12 -08:00 committed by Ben Noordhuis
parent b261e37a34
commit cf2513e1aa

View File

@ -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',