mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-29 12:49:08 +00:00
LibWeb: Make factory method of HTML::Storage fallible
This commit is contained in:
committed by
Linus Groh
parent
d7ee378018
commit
b41401bab2
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user