LibJS: Handle Temporal.PlainDate in dynamic calendar operations

This commit is contained in:
Timothy Flynn 2024-11-23 09:29:20 -05:00 committed by Tim Flynn
commit c83a3db542
Notes: github-actions[bot] 2024-11-24 00:38:29 +00:00
2 changed files with 6 additions and 0 deletions

View file

@ -624,6 +624,8 @@ ThrowCompletionOr<bool> is_partial_temporal_object(VM& vm, Value value)
// [[InitializedTemporalTime]], [[InitializedTemporalYearMonth]], or [[InitializedTemporalZonedDateTime]] internal
// slot, return false.
// FIXME: Add the other types as we define them.
if (is<PlainDate>(object))
return false;
if (is<PlainMonthDay>(object))
return false;
if (is<PlainYearMonth>(object))