LibJS: Convert internal_set_prototype_of() to ThrowCompletionOr

This commit is contained in:
Linus Groh 2021-09-28 23:54:42 +01:00
commit 8c81c84c18
Notes: sideshowbarker 2024-07-18 03:19:34 +09:00
20 changed files with 43 additions and 50 deletions

View file

@ -144,7 +144,7 @@ void GlobalObject::initialize_global_object()
static_cast<ObjectPrototype*>(m_object_prototype)->initialize(*this);
m_object_prototype->set_initialized(Badge<GlobalObject> {});
auto success = Object::internal_set_prototype_of(m_object_prototype);
auto success = Object::internal_set_prototype_of(m_object_prototype).release_value();
VERIFY(success);
// This must be initialized before allocating AggregateErrorPrototype, which uses ErrorPrototype as its prototype.