buffer: don't pollute global namespace in buffer.readInt*
This commit is contained in:
parent
b261e37a34
commit
cf2513e1aa
@ -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',
|
||||
|
Loading…
x
Reference in New Issue
Block a user