mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 14:28:12 +00:00
LibJS: Convert internal_set_prototype_of() to ThrowCompletionOr
This commit is contained in:
parent
5148150e1c
commit
8c81c84c18
20 changed files with 43 additions and 50 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue