mirror of
https://github.com/oven-sh/bun
synced 2026-02-09 10:28:47 +00:00
type fix
This commit is contained in:
@@ -1684,7 +1684,7 @@ pub const ServerConfig = struct {
|
||||
} else {
|
||||
const ty = try global.determineSpecificType(onRequest_);
|
||||
defer ty.deref();
|
||||
return global.throwInvalidArgumentType("Expected 'fetch()' to be a function, got {s}", .{ty});
|
||||
return global.throwInvalidArguments("Expected 'fetch()' to be a function, got {s}", .{ty});
|
||||
}
|
||||
}
|
||||
const onRequest = onRequest_.withAsyncContextIfNeeded(global);
|
||||
|
||||
Reference in New Issue
Block a user