1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 03:57:44 +00:00

LibJS: Use ErrorType::NotAnObjectOfType instead of NotA

This commit is contained in:
Timothy Flynn 2021-09-11 15:01:40 -04:00 committed by Andreas Kling
parent 9def17d4cb
commit 470262c8ab
40 changed files with 67 additions and 67 deletions

View file

@ -22,7 +22,7 @@ static DisplayNames* typed_this(GlobalObject& global_object)
return nullptr;
if (!is<DisplayNames>(this_object)) {
vm.throw_exception<TypeError>(global_object, ErrorType::NotA, "Intl.DisplayNames");
vm.throw_exception<TypeError>(global_object, ErrorType::NotAnObjectOfType, "Intl.DisplayNames");
return nullptr;
}

View file

@ -28,7 +28,7 @@ static ListFormat* typed_this(GlobalObject& global_object)
return nullptr;
if (!is<ListFormat>(this_object)) {
vm.throw_exception<TypeError>(global_object, ErrorType::NotA, "Intl.ListFormat");
vm.throw_exception<TypeError>(global_object, ErrorType::NotAnObjectOfType, "Intl.ListFormat");
return nullptr;
}

View file

@ -21,7 +21,7 @@ static Locale* typed_this(GlobalObject& global_object)
return nullptr;
if (!is<Locale>(this_object)) {
vm.throw_exception<TypeError>(global_object, ErrorType::NotA, "Intl.Locale");
vm.throw_exception<TypeError>(global_object, ErrorType::NotAnObjectOfType, "Intl.Locale");
return nullptr;
}

View file

@ -20,7 +20,7 @@ static NumberFormat* typed_this(GlobalObject& global_object)
return nullptr;
if (!is<NumberFormat>(this_object)) {
vm.throw_exception<TypeError>(global_object, ErrorType::NotA, "Intl.NumberFormat");
vm.throw_exception<TypeError>(global_object, ErrorType::NotAnObjectOfType, "Intl.NumberFormat");
return nullptr;
}