From: Jesse Tane Date: Tue, 16 Dec 2014 00:04:49 +0000 (-0500) Subject: copy should return length X-Git-Url: https://zoso.dev/?a=commitdiff_plain;h=1157c8811d109c1edf9295b2be9487ffca558dbb;p=buffer.git copy should return length --- diff --git a/index.js b/index.js index 98c8b87..5321a25 100644 --- a/index.js +++ b/index.js @@ -868,6 +868,8 @@ Buffer.prototype.copy = function(target, target_start, start, end) { } else { target._set(this.subarray(start, start + len), target_start) } + + return len } // fill(value, start=0, end=buffer.length)