mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-27 11:48:32 +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:
committed by
Andrew Kaster
parent
17d5dfe597
commit
1514197e36
@@ -55,7 +55,7 @@ WebIDL::ExceptionOr<GC::Ref<CompressionStream>> CompressionStream::construct_imp
|
||||
auto& vm = realm.vm();
|
||||
|
||||
if (auto result = stream->compress_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());
|
||||
}
|
||||
|
||||
@@ -68,7 +68,7 @@ WebIDL::ExceptionOr<GC::Ref<CompressionStream>> CompressionStream::construct_imp
|
||||
auto& vm = realm.vm();
|
||||
|
||||
if (auto result = stream->compress_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());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user