diff --git a/lib/buffer.js b/lib/buffer.js index 48c69f3f2be..8d93384d429 100644 --- a/lib/buffer.js +++ b/lib/buffer.js @@ -468,9 +468,10 @@ Buffer.prototype.fill = function fill(value, start, end) { throw new RangeError('end out of bounds'); } - return this.parent.fill(value, - start + this.offset, - end + this.offset); + this.parent.fill(value, + start + this.offset, + end + this.offset); + return this; };