mirror of
https://github.com/oven-sh/bun
synced 2026-02-11 11:29:02 +00:00
[bun.js] Use Headers from WebKit instead of custom
This commit is contained in:
@@ -91,7 +91,6 @@ pub const GlobalConstructors = [_]type{
|
||||
WebCore.TextEncoder.Constructor,
|
||||
Request.Constructor,
|
||||
Response.Constructor,
|
||||
Headers.Constructor,
|
||||
JSC.Cloudflare.HTMLRewriter.Constructor,
|
||||
};
|
||||
|
||||
@@ -2199,7 +2198,7 @@ pub const EventListenerMixin = struct {
|
||||
|
||||
fetch_event.* = FetchEvent{
|
||||
.request_context = request_context,
|
||||
.request = try Request.fromRequestContext(request_context),
|
||||
.request = try Request.fromRequestContext(request_context, vm.global),
|
||||
.onPromiseRejectionCtx = @as(*anyopaque, ctx),
|
||||
.onPromiseRejectionHandler = FetchEventRejectionHandler.onRejection,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user