From: Feross Aboukhadijeh <feross@feross.org> Date: Sat, 28 Dec 2013 11:03:34 +0000 (-0800) Subject: fix invisible char X-Git-Url: https://zoso.dev/?a=commitdiff_plain;h=737938c2e1964379339d4e1bf60a7b5aee49909c;p=buffer.git fix invisible char --- diff --git a/index.js b/index.js index 892c99f..46d0f97 100644 --- a/index.js +++ b/index.js @@ -901,7 +901,7 @@ Buffer.prototype.writeFloatBE = function (value, offset, noAssert) { function _writeDouble (buf, value, offset, littleEndian, noAssert) { if (!noAssert) { assert(value !== undefined && value !== null, 'missing value') - assert(typeof littleEndian === 'boolean', 'missing or invalid endian') + assert(typeof littleEndian === 'boolean', 'missing or invalid endian') assert(offset !== undefined && offset !== null, 'missing offset') assert(offset + 7 < buf.length, 'Trying to write beyond buffer length')