1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 16:27:35 +00:00

LibJS: Rename ErrorType::ToObjectNullOr{Undef => Undefined}

This seems like an unnecessary and uncommon abbreviation.
This commit is contained in:
Linus Groh 2021-01-13 20:34:44 +01:00 committed by Andreas Kling
parent f67f8fdbf2
commit cab3049dcc
3 changed files with 3 additions and 3 deletions

View file

@ -355,7 +355,7 @@ Object* Value::to_object(GlobalObject& global_object) const
switch (m_type) {
case Type::Undefined:
case Type::Null:
global_object.vm().throw_exception<TypeError>(global_object, ErrorType::ToObjectNullOrUndef);
global_object.vm().throw_exception<TypeError>(global_object, ErrorType::ToObjectNullOrUndefined);
return nullptr;
case Type::Boolean:
return BooleanObject::create(global_object, m_value.as_bool);