Skip to content

Commit

Permalink
clone buffer when directly enqueuing it
Browse files Browse the repository at this point in the history
  • Loading branch information
feedthejim committed Nov 7, 2022
1 parent 4bd245e commit a438590
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export function writeChunk(
currentView = new Uint8Array(VIEW_SIZE);
writtenBytes = 0;
}
destination.enqueue(chunk);
destination.enqueue(chunk.slice());
return;
}

Expand Down

0 comments on commit a438590

Please sign in to comment.