mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-29 04:39:10 +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
|
@ -58,7 +58,7 @@ struct ExtractExceptionOrValueType<WebIDL::ExceptionOr<void>> {
|
|||
|
||||
}
|
||||
|
||||
ALWAYS_INLINE JS::Completion dom_exception_to_throw_completion(JS::VM& vm, auto&& exception)
|
||||
ALWAYS_INLINE JS::Completion exception_to_throw_completion(JS::VM& vm, auto&& exception)
|
||||
{
|
||||
return exception.visit(
|
||||
[&](WebIDL::SimpleException const& exception) {
|
||||
|
@ -97,7 +97,7 @@ JS::ThrowCompletionOr<Ret> throw_dom_exception_if_needed(JS::VM& vm, F&& fn)
|
|||
auto&& result = fn();
|
||||
|
||||
if (result.is_exception())
|
||||
return dom_exception_to_throw_completion(vm, result.exception());
|
||||
return exception_to_throw_completion(vm, result.exception());
|
||||
|
||||
if constexpr (requires(T v) { v.value(); })
|
||||
return result.value();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue