]> zoso.dev Git - buffer.git/commitdiff
copy should return length
authorJesse Tane <jesse.tane@gmail.com>
Tue, 16 Dec 2014 00:04:49 +0000 (19:04 -0500)
committerJesse Tane <jesse.tane@gmail.com>
Mon, 22 Dec 2014 22:44:16 +0000 (17:44 -0500)
index.js

index 98c8b871d81ae454d5932ea7b354bf147de5773e..5321a25e6a0e2570541282682cbf23d655b7bb09 100644 (file)
--- 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)