mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-30 04:39:06 +00:00
LibWeb: Make factory method of Fetch::Response fallible
This commit is contained in:
parent
54913adf37
commit
3f50025126
Notes:
sideshowbarker
2024-07-17 06:00:02 +09:00
Author: https://github.com/kennethmyhra
Commit: 3f50025126
Pull-request: https://github.com/SerenityOS/serenity/pull/17542
3 changed files with 9 additions and 9 deletions
|
@ -106,7 +106,7 @@ JS::NonnullGCPtr<JS::Promise> fetch_impl(JS::VM& vm, RequestInfo const& input, R
|
|||
|
||||
// 4. Set responseObject to the result of creating a Response object, given response, "immutable", and
|
||||
// relevantRealm.
|
||||
auto response_object = Response::create(relevant_realm, response, Headers::Guard::Immutable);
|
||||
auto response_object = Response::create(relevant_realm, response, Headers::Guard::Immutable).release_value_but_fixme_should_propagate_errors();
|
||||
response_object_handle = JS::make_handle(response_object);
|
||||
|
||||
// 5. Resolve p with responseObject.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue