diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/bun.js/webcore/blob.zig | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/bun.js/webcore/blob.zig b/src/bun.js/webcore/blob.zig index b0f1df935..1e0720ea6 100644 --- a/src/bun.js/webcore/blob.zig +++ b/src/bun.js/webcore/blob.zig @@ -3003,12 +3003,13 @@ pub const Blob = struct { } } + const offset = this.offset +| @as(SizeType, @intCast(relativeStart)); const len = @as(SizeType, @intCast(@max(relativeEnd -| relativeStart, 0))); // This copies over the is_all_ascii flag // which is okay because this will only be a <= slice var blob = this.dupe(); - blob.offset = @as(SizeType, @intCast(relativeStart)); + blob.offset = offset; blob.size = len; // infer the content type if it was not specified |