1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 06:17:34 +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

@ -456,7 +456,7 @@ PlainDate* date_from_fields(GlobalObject& global_object, Object& calendar, Objec
if (!date_object)
return {};
if (!is<PlainDate>(date_object)) {
vm.throw_exception<TypeError>(global_object, ErrorType::NotA, "Temporal.PlainDate");
vm.throw_exception<TypeError>(global_object, ErrorType::NotAnObjectOfType, "Temporal.PlainDate");
return {};
}
@ -486,7 +486,7 @@ PlainYearMonth* year_month_from_fields(GlobalObject& global_object, Object& cale
if (!year_month_object)
return {};
if (!is<PlainYearMonth>(year_month_object)) {
vm.throw_exception<TypeError>(global_object, ErrorType::NotA, "Temporal.PlainYearMonth");
vm.throw_exception<TypeError>(global_object, ErrorType::NotAnObjectOfType, "Temporal.PlainYearMonth");
return {};
}
@ -516,7 +516,7 @@ PlainMonthDay* month_day_from_fields(GlobalObject& global_object, Object& calend
if (!month_day_object)
return {};
if (!is<PlainMonthDay>(month_day_object)) {
vm.throw_exception<TypeError>(global_object, ErrorType::NotA, "Temporal.PlainMonthDay");
vm.throw_exception<TypeError>(global_object, ErrorType::NotAnObjectOfType, "Temporal.PlainMonthDay");
return {};
}