AK+Everywhere: Rename verify_cast to as

Follow-up to fc20e61e72.
This commit is contained in:
Timothy Flynn 2025-01-21 09:12:05 -05:00 committed by Tim Flynn
parent a0b44ff5e7
commit 85b424464a
Notes: github-actions[bot] 2025-01-21 16:49:39 +00:00
191 changed files with 574 additions and 574 deletions

View file

@ -132,7 +132,7 @@ void execute_script(HTML::BrowsingContext const& browsing_context, ByteString bo
return JS::js_undefined();
timer->stop();
auto promise_promise = GC::Ref { verify_cast<JS::Promise>(*promise->promise()) };
auto promise_promise = GC::Ref { as<JS::Promise>(*promise->promise()) };
on_complete->function()({ promise_promise->state(), promise_promise->result() });
return JS::js_undefined();
@ -164,7 +164,7 @@ void execute_async_script(HTML::BrowsingContext const& browsing_context, ByteStr
// 7. Let promise be a new Promise.
auto promise_capability = WebIDL::create_promise(realm);
GC::Ref promise { verify_cast<JS::Promise>(*promise_capability->promise()) };
GC::Ref promise { as<JS::Promise>(*promise_capability->promise()) };
// 8. Run the following substeps in parallel:
Platform::EventLoopPlugin::the().deferred_invoke(GC::create_function(realm.heap(), [&vm, &realm, &browsing_context, timer, promise_capability, promise, body = move(body), arguments = move(arguments)]() mutable {