mirror of
https://github.com/oven-sh/bun
synced 2026-02-09 10:28:47 +00:00
fix(Blob/stream) blob from fetch now reliable returns type, blob name can be set (#11815)
This commit is contained in:
@@ -78,7 +78,7 @@ pub const StandaloneModuleGraph = struct {
|
||||
|
||||
pub fn blob(this: *File, globalObject: *bun.JSC.JSGlobalObject) *bun.JSC.WebCore.Blob {
|
||||
if (this.blob_ == null) {
|
||||
var store = bun.JSC.WebCore.Blob.Store.init(@constCast(this.contents), bun.default_allocator) catch bun.outOfMemory();
|
||||
var store = bun.JSC.WebCore.Blob.Store.init(@constCast(this.contents), bun.default_allocator);
|
||||
// make it never free
|
||||
store.ref();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user