mirror of
https://github.com/oven-sh/bun
synced 2026-02-10 02:48:50 +00:00
fetc h!!!
This commit is contained in:
@@ -33,6 +33,7 @@ pub const GlobalClasses = [_]type{
|
||||
BuildError.Class,
|
||||
ResolveError.Class,
|
||||
Bun.Class,
|
||||
Fetch.Class,
|
||||
};
|
||||
const Blob = @import("../../blob.zig");
|
||||
|
||||
@@ -276,6 +277,10 @@ pub const Bun = struct {
|
||||
.rfn = Router.match,
|
||||
.ts = Router.match_type_definition,
|
||||
},
|
||||
.fetch = .{
|
||||
.rfn = Fetch.call,
|
||||
.ts = d.ts{},
|
||||
},
|
||||
.getImportedStyles = .{
|
||||
.rfn = Bun.getImportedStyles,
|
||||
.ts = d.ts{
|
||||
@@ -1348,7 +1353,6 @@ pub const EventListenerMixin = struct {
|
||||
// Rely on JS finalizer
|
||||
var fetch_event = try vm.allocator.create(FetchEvent);
|
||||
|
||||
|
||||
fetch_event.* = FetchEvent{
|
||||
.request_context = request_context,
|
||||
.request = Request{ .request_context = request_context },
|
||||
|
||||
Reference in New Issue
Block a user