From 9ded17d722b8da124987cdf16976589a46f2d3f5 Mon Sep 17 00:00:00 2001 From: Marcos Casagrande Date: Thu, 30 Apr 2020 22:39:25 +0200 Subject: BREAKING: reorder std/io/utils copyBytes arguments (#5022) --- std/bytes/mod.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'std/bytes') diff --git a/std/bytes/mod.ts b/std/bytes/mod.ts index 88eb97710..7d51e995c 100644 --- a/std/bytes/mod.ts +++ b/std/bytes/mod.ts @@ -86,10 +86,10 @@ export function repeat(b: Uint8Array, count: number): Uint8Array { const nb = new Uint8Array(b.length * count); - let bp = copyBytes(nb, b); + let bp = copyBytes(b, nb); for (; bp < nb.length; bp *= 2) { - copyBytes(nb, nb.slice(0, bp), bp); + copyBytes(nb.slice(0, bp), nb, bp); } return nb; -- cgit v1.2.3