mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 13:27:35 +00:00
LibJS: Use ErrorType::NotAnObjectOfType instead of NotA
This commit is contained in:
parent
9def17d4cb
commit
470262c8ab
40 changed files with 67 additions and 67 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue