From 1157c8811d109c1edf9295b2be9487ffca558dbb Mon Sep 17 00:00:00 2001 From: Jesse Tane Date: Mon, 15 Dec 2014 19:04:49 -0500 Subject: [PATCH] copy should return length --- index.js | 2 ++ 1 file changed, 2 insertions(+) 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) -- 2.34.1