LibWeb: Make factory method of DOM::AbortSignal fallible

This commit is contained in:
Kenneth Myhra
2023-02-14 21:02:46 +01:00
committed by Linus Groh
parent c4d559bd37
commit a5ad8b2959
3 changed files with 4 additions and 4 deletions

View File

@@ -12,9 +12,9 @@
namespace Web::DOM {
JS::NonnullGCPtr<AbortSignal> AbortSignal::construct_impl(JS::Realm& realm)
WebIDL::ExceptionOr<JS::NonnullGCPtr<AbortSignal>> AbortSignal::construct_impl(JS::Realm& realm)
{
return realm.heap().allocate<AbortSignal>(realm, realm).release_allocated_value_but_fixme_should_propagate_errors();
return MUST_OR_THROW_OOM(realm.heap().allocate<AbortSignal>(realm, realm));
}
AbortSignal::AbortSignal(JS::Realm& realm)