mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-28 11:49:44 +00:00
LibJS: Add make_handle({Nonnull,}GCPtr<T>) overloads
This commit is contained in:
parent
029db614e3
commit
2a66fc6cae
Notes:
sideshowbarker
2024-07-17 06:09:44 +09:00
Author: https://github.com/linusg
Commit: 2a66fc6cae
Pull-request: https://github.com/SerenityOS/serenity/pull/16498
Reviewed-by: https://github.com/trflynn89 ✅
5 changed files with 18 additions and 4 deletions
|
@ -107,7 +107,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);
|
||||
response_object_handle = JS::make_handle(response_object.ptr());
|
||||
response_object_handle = JS::make_handle(response_object);
|
||||
|
||||
// 5. Resolve p with responseObject.
|
||||
WebIDL::resolve_promise(vm, promise_capability, response_object);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue