Skip to content

Commit

Permalink
fix max call stack exceeded when applying fossil delta
Browse files Browse the repository at this point in the history
  • Loading branch information
FZambia committed Jun 27, 2024
1 parent ffe0b66 commit e172330
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/fossil.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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]);
}
}

Expand Down

0 comments on commit e172330

Please sign in to comment.