This commit is contained in:
Don Isaac
2025-03-17 14:45:20 -07:00
parent 1d50addacb
commit 2af23f746f

View File

@@ -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);