mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-27 04:37:22 +00:00
LibWeb: Remove dom_
from dom_exception_to_throw_completion
We're not converting `WebIDL::DOMException`, but `WebIDL::Exception` instead.
This commit is contained in:
parent
17d5dfe597
commit
1514197e36
Notes:
github-actions[bot]
2024-12-10 03:03:42 +00:00
Author: https://github.com/gmta
Commit: 1514197e36
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2162
Reviewed-by: https://github.com/ADKaster ✅
Reviewed-by: https://github.com/shannonbooth
14 changed files with 35 additions and 35 deletions
|
@ -36,7 +36,7 @@ GC::Ref<WebIDL::Promise> fetch(JS::VM& vm, RequestInfo const& input, RequestInit
|
|||
// as arguments. If this throws an exception, reject p with it and return p.
|
||||
auto exception_or_request_object = Request::construct_impl(realm, input, init);
|
||||
if (exception_or_request_object.is_exception()) {
|
||||
auto throw_completion = Bindings::dom_exception_to_throw_completion(vm, exception_or_request_object.exception());
|
||||
auto throw_completion = Bindings::exception_to_throw_completion(vm, exception_or_request_object.exception());
|
||||
WebIDL::reject_promise(realm, promise_capability, *throw_completion.value());
|
||||
return promise_capability;
|
||||
}
|
||||
|
|
|
@ -69,7 +69,7 @@ void FetchedDataReceiver::on_data_received(ReadonlyBytes bytes)
|
|||
|
||||
// 1. Pull from bytes buffer into stream.
|
||||
if (auto result = Streams::readable_stream_pull_from_bytes(m_stream, move(bytes)); result.is_error()) {
|
||||
auto throw_completion = Bindings::dom_exception_to_throw_completion(m_stream->vm(), result.release_error());
|
||||
auto throw_completion = Bindings::exception_to_throw_completion(m_stream->vm(), result.release_error());
|
||||
|
||||
dbgln("FetchedDataReceiver: Stream error pulling bytes");
|
||||
HTML::report_exception(throw_completion, m_stream->realm());
|
||||
|
|
|
@ -93,7 +93,7 @@ void Body::fully_read(JS::Realm& realm, Web::Fetch::Infrastructure::Body::Proces
|
|||
auto reader = Streams::acquire_readable_stream_default_reader(m_stream);
|
||||
|
||||
if (reader.is_exception()) {
|
||||
auto throw_completion = Bindings::dom_exception_to_throw_completion(realm.vm(), reader.release_error());
|
||||
auto throw_completion = Bindings::exception_to_throw_completion(realm.vm(), reader.release_error());
|
||||
error_steps(throw_completion.release_value().value());
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue