mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 17:55:07 +02:00
LibJS: Add make_handle({Nonnull,}GCPtr<T>) overloads
This commit is contained in:
Notes:
sideshowbarker
2024-07-17 06:09:44 +09:00
Author: https://github.com/linusg Commit: https://github.com/SerenityOS/serenity/commit/2a66fc6cae Pull-request: https://github.com/SerenityOS/serenity/pull/16498 Reviewed-by: https://github.com/trflynn89 ✅
@@ -323,7 +323,7 @@ Vector<JS::Handle<DOM::Document>> EventLoop::documents_in_this_event_loop() cons
|
||||
Vector<JS::Handle<DOM::Document>> documents;
|
||||
for (auto& document : m_documents) {
|
||||
VERIFY(document);
|
||||
documents.append(JS::make_handle(*document.ptr()));
|
||||
documents.append(JS::make_handle(*document));
|
||||
}
|
||||
return documents;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user