generated from tc39/template-for-proposals
-
Notifications
You must be signed in to change notification settings - Fork 10
Closed
Description
I found few alleged spec issues:
- Assertions of the end of
NonISOResolveFieldsand the beginning ofNonISOMonthDayToISOReferenceDateaboutfields.[[Month]]can fail becausefields.[[Month]]isUNSETwhentypeisMONTH-DAYand only[[monthCode]]and[[day]]exist (e.g.Temporal.PlainMonthDay.from({ monthCode: 'M01', day: 1, calendar: 'hebrew' })). - Similar to spec:
NonISOCalendarDateToISOAO seems not to constrain an ordinal month #121,NonISOMonthDayToISOReferenceDateseems not to constrainfields.[[month]]. NonISOMonthDayToISOReferenceDateperformsConstrainMonthCodewhen the calendar is neither"chinese"nor"dangi", but it doesn't when the calendar is"chinese"or"dangi". Thus, for example,Temporal.PlainMonthDay.from({ year: 2026, monthCode: 'M05L', day: 1, calendar: 'chinese' }, { overflow: 'reject' })doesn't throw according to the spec even though M05L doesn't exist in 2026. However it actually throws in V8, SpiderMonkey, and the reference polyfill. Note that"hebrew"calendar doesn't have this problem.- The call of
CalendarIntegersToISOin the step 4. e. iii. 1. can violate the assertion ofCalendarIntegersToISOwhendayis 30 and the specified month has only 29 days.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels