Browse Source

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

v0.7.4-release
Phil Sung 13 years ago
committed by Ben Noordhuis
parent
commit
cf2513e1aa
  1. 4
      lib/buffer.js

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

Loading…
Cancel
Save