diff --git a/lib/buffer.js b/lib/buffer.js index f755d951b8264d..d37942df4861b0 100644 --- a/lib/buffer.js +++ b/lib/buffer.js @@ -827,11 +827,11 @@ Buffer.prototype.readDoubleBE = function(offset, noAssert) { function checkInt(buffer, value, offset, ext, max, min) { if ((value % 1) !== 0 || value > max || value < min) - throw TypeError("value is out of bounds"); + throw TypeError('value is out of bounds'); if ((offset % 1) !== 0 || offset < 0) - throw TypeError("offset is not uint"); + throw TypeError('offset is not uint'); if (offset + ext > buffer.length || buffer.length + offset < 0) - throw RangeError("Trying to write outside buffer length"); + throw RangeError('Trying to write outside buffer length'); }