buffer: return this
in fill() for chainability
This commit is contained in:
parent
6b654c0b13
commit
6af8788f3e
@ -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;
|
||||
};
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user