Skip to content

Commit

Permalink
[fetch] change response allocator (#3086)
Browse files Browse the repository at this point in the history
* change allocator

* cleanup
  • Loading branch information
cirospaciari authored and Jarred-Sumner committed May 27, 2023
1 parent 07429e8 commit 04f6c6a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bun.js/webcore/response.zig
Original file line number Diff line number Diff line change
Expand Up @@ -797,7 +797,7 @@ pub const Fetch = struct {
}

pub fn onResolve(this: *FetchTasklet) JSValue {
var allocator = this.global_this.bunVM().allocator;
const allocator = bun.default_allocator;
var response = allocator.create(Response) catch unreachable;
response.* = this.toResponse(allocator);
return Response.makeMaybePooled(@ptrCast(js.JSContextRef, this.global_this), response);
Expand Down

0 comments on commit 04f6c6a

Please sign in to comment.