mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 01:47:34 +00:00
LibWeb: Handle currently ignored WebIDL::ExceptionOr<T>
s
This commit is contained in:
parent
f01d90aa63
commit
acfb546048
38 changed files with 153 additions and 149 deletions
|
@ -420,7 +420,7 @@ WebIDL::ExceptionOr<JS::NonnullGCPtr<Request>> Request::construct_impl(JS::Realm
|
|||
}
|
||||
// 5. Otherwise, fill this’s headers with headers.
|
||||
else {
|
||||
request_object->headers()->fill(headers.get<HeadersInit>());
|
||||
TRY(request_object->headers()->fill(headers.get<HeadersInit>()));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -96,7 +96,7 @@ WebIDL::ExceptionOr<void> Response::initialize_response(ResponseInit const& init
|
|||
|
||||
// 5. If init["headers"] exists, then fill response’s headers with init["headers"].
|
||||
if (init.headers.has_value())
|
||||
m_headers->fill(*init.headers);
|
||||
TRY(m_headers->fill(*init.headers));
|
||||
|
||||
// 6. If body was given, then:
|
||||
if (body.has_value()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue