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
commit b41401bab2
Notes: sideshowbarker 2024-07-17 03:18:29 +09:00
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)