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');
|
throw new RangeError('end out of bounds');
|
||||||
}
|
}
|
||||||
|
|
||||||
return this.parent.fill(value,
|
this.parent.fill(value,
|
||||||
start + this.offset,
|
start + this.offset,
|
||||||
end + this.offset);
|
end + this.offset);
|
||||||
|
return this;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user