Skip to content

Commit

Permalink
undo test
Browse files Browse the repository at this point in the history
  • Loading branch information
cirospaciari committed Sep 13, 2023
1 parent 2d6615f commit 543d079
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/bun.js/webcore/blob.zig
Original file line number Diff line number Diff line change
Expand Up @@ -742,15 +742,13 @@ pub const Blob = struct {
}
// If this is file <> file, we can just copy the file
else if (destination_type == .file and source_type == .file) {
// we should respect the slice source offset and size
// Bun.write(dest, src.slice(0, 100))
var file_copier = Store.CopyFile.create(
bun.default_allocator,
destination_blob.store.?,
source_blob.store.?,

source_blob.offset,
source_blob.size,
destination_blob.offset,
destination_blob.size,
ctx.ptr(),
) catch unreachable;
file_copier.schedule();
Expand Down

0 comments on commit 543d079

Please sign in to comment.