LibWeb: Remove dom_ from dom_exception_to_throw_completion

We're not converting `WebIDL::DOMException`, but `WebIDL::Exception`
instead.
This commit is contained in:
Jelle Raaijmakers 2024-11-04 14:37:27 +01:00 committed by Andrew Kaster
commit 1514197e36
Notes: github-actions[bot] 2024-12-10 03:03:42 +00:00
14 changed files with 35 additions and 35 deletions

View file

@ -241,7 +241,7 @@ JS::ThrowCompletionOr<GC::Ref<WebIDL::Promise>> FontFaceSet::load(String const&
auto result = find_matching_font_faces(realm, font_face_set, font, text);
if (result.is_error()) {
HTML::TemporaryExecutionContext execution_context { realm, HTML::TemporaryExecutionContext::CallbacksEnabled::Yes };
WebIDL::reject_promise(realm, promise, Bindings::dom_exception_to_throw_completion(realm.vm(), result.release_error()).release_value().value());
WebIDL::reject_promise(realm, promise, Bindings::exception_to_throw_completion(realm.vm(), result.release_error()).release_value().value());
return;
}