mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-05 06:32:30 +02: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
Notes:
github-actions[bot]
2024-12-10 03:03:42 +00:00
Author: https://github.com/gmta Commit: https://github.com/LadybirdBrowser/ladybird/commit/1514197e368 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2162 Reviewed-by: https://github.com/ADKaster ✅ Reviewed-by: https://github.com/shannonbooth
@@ -701,7 +701,7 @@ GC::Ref<WebIDL::Promise> compile_potential_webassembly_response(JS::VM& vm, GC::
|
||||
// 8. Consume response’s body as an ArrayBuffer, and let bodyPromise be the result.
|
||||
auto body_promise_or_error = response_object.array_buffer();
|
||||
if (body_promise_or_error.is_error()) {
|
||||
auto throw_completion = Bindings::dom_exception_to_throw_completion(realm.vm(), body_promise_or_error.release_error());
|
||||
auto throw_completion = Bindings::exception_to_throw_completion(realm.vm(), body_promise_or_error.release_error());
|
||||
WebIDL::reject_promise(realm, return_value, *throw_completion.value());
|
||||
return JS::js_undefined();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user