LibWeb: Make factory method of HTML::Storage fallible

This commit is contained in:
Kenneth Myhra
2023-02-15 19:57:02 +01:00
committed by Linus Groh
parent d7ee378018
commit b41401bab2
3 changed files with 5 additions and 5 deletions

View File

@@ -10,9 +10,9 @@
namespace Web::HTML {
JS::NonnullGCPtr<Storage> Storage::create(JS::Realm& realm)
WebIDL::ExceptionOr<JS::NonnullGCPtr<Storage>> Storage::create(JS::Realm& realm)
{
return realm.heap().allocate<Storage>(realm, realm).release_allocated_value_but_fixme_should_propagate_errors();
return MUST_OR_THROW_OOM(realm.heap().allocate<Storage>(realm, realm));
}
Storage::Storage(JS::Realm& realm)