diff --git a/src/fossil.ts b/src/fossil.ts index 006e1da0..f6dc4bbe 100644 --- a/src/fossil.ts +++ b/src/fossil.ts @@ -72,7 +72,8 @@ class Writer { // Copy from array at start to end. putArray(a: ByteArray, start: number, end: number) { - this.a.push(...a.slice(start, end)); + // TODO: optimize. + for (let i = start; i < end; i++) this.a.push(a[i]); } }