mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-31 05:09:12 +00:00
LibJS: Use ErrorType::NotAnObjectOfType instead of NotA
This commit is contained in:
parent
9def17d4cb
commit
470262c8ab
Notes:
sideshowbarker
2024-07-18 04:14:25 +09:00
Author: https://github.com/trflynn89
Commit: 470262c8ab
Pull-request: https://github.com/SerenityOS/serenity/pull/9975
Reviewed-by: https://github.com/linusg ✅
40 changed files with 67 additions and 67 deletions
|
@ -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 {};
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue