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

@ -56,7 +56,7 @@ WebIDL::ExceptionOr<GC::Ref<DecompressionStream>> DecompressionStream::construct
auto& vm = realm.vm();
if (auto result = stream->decompress_and_enqueue_chunk(chunk); result.is_error()) {
auto throw_completion = Bindings::dom_exception_to_throw_completion(vm, result.exception());
auto throw_completion = Bindings::exception_to_throw_completion(vm, result.exception());
return WebIDL::create_rejected_promise(realm, *throw_completion.release_value());
}
@ -69,7 +69,7 @@ WebIDL::ExceptionOr<GC::Ref<DecompressionStream>> DecompressionStream::construct
auto& vm = realm.vm();
if (auto result = stream->decompress_flush_and_enqueue(); result.is_error()) {
auto throw_completion = Bindings::dom_exception_to_throw_completion(vm, result.exception());
auto throw_completion = Bindings::exception_to_throw_completion(vm, result.exception());
return WebIDL::create_rejected_promise(realm, *throw_completion.release_value());
}