From c17fa805ce8dafbacc0300b124cf9e968ebcc225 Mon Sep 17 00:00:00 2001 From: cirospaciari Date: Tue, 12 Sep 2023 20:05:02 -0700 Subject: [PATCH] undo test --- src/bun.js/webcore/blob.zig | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/bun.js/webcore/blob.zig b/src/bun.js/webcore/blob.zig index 5d08bca65c2073..7ce254ca8b6df4 100644 --- a/src/bun.js/webcore/blob.zig +++ b/src/bun.js/webcore/blob.zig @@ -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();