1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-15 08:44:58 +00:00
serenity/Userland/Libraries/LibJS/Tests/builtins/Temporal/PlainDate
Shannon Booth bb8dad5bb0 LibJS: Begin using CalendarMethodsRecord for AOs
This begins the process of aligning our implementation with the spec
with regard to using CalendarMethodsRecord. The main intent here is to
make it much easier to make normative changes to AOs which have been
updated to CalendarMethodsRecord.

While this does resolve various FIXMEs, many others above need to be
added in order to be able to pass through a CalendarMethodsRecord. The
use here aligns with what I can gather from the spec of what the
arguments to CreateCalendarMethodsRecord should be, but various AOs have
been updated so much with other changes it's not completely obvious.
Other AOs do not even exist in the latest version of the spec, but we
still rely on them.

As part of these updates, this commit coincidentally also fixes two
PlainDate roundingmode issues seen in test262 - a test of which is also
added in test-js. This issue boiled down to what appears to be an
observable optimization in the spec, where it can avoid calling
dateUntil in certain situations (roundingGranularityIsNoop).

However, the main goal here is to make it much easier to fix many more
issues in the future :^)

since/calendar-dateuntil-called-with-singular-largestunit.js  -> 
until/calendar-dateuntil-called-with-singular-largestunit.js  -> 
2024-02-16 12:27:23 -05:00
..
PlainDate.compare.js
PlainDate.from.js LibJS: Remove redundant TemporalDateString production 2022-05-16 20:28:26 +01:00
PlainDate.js
PlainDate.prototype.@@toStringTag.js
PlainDate.prototype.add.js
PlainDate.prototype.calendar.js
PlainDate.prototype.day.js
PlainDate.prototype.dayOfWeek.js
PlainDate.prototype.dayOfYear.js
PlainDate.prototype.daysInMonth.js
PlainDate.prototype.daysInWeek.js
PlainDate.prototype.daysInYear.js
PlainDate.prototype.equals.js LibJS/Tests: Fix Temporal.PlainDate.prototype.equals() tests 2021-11-08 19:12:54 +00:00
PlainDate.prototype.era.js
PlainDate.prototype.eraYear.js
PlainDate.prototype.getISOFields.js
PlainDate.prototype.inLeapYear.js
PlainDate.prototype.month.js
PlainDate.prototype.monthCode.js
PlainDate.prototype.monthsInYear.js
PlainDate.prototype.since.js LibJS: Begin using CalendarMethodsRecord for AOs 2024-02-16 12:27:23 -05:00
PlainDate.prototype.subtract.js
PlainDate.prototype.toJSON.js
PlainDate.prototype.toLocaleString.js
PlainDate.prototype.toPlainDateTime.js
PlainDate.prototype.toPlainMonthDay.js
PlainDate.prototype.toPlainYearMonth.js
PlainDate.prototype.toString.js LibJS: Add calendarName: "critical" option to toString() methods 2022-11-03 19:15:50 +00:00
PlainDate.prototype.toZonedDateTime.js LibJS: Add fast path TimeZone conversion to PlainDate#toZonedDateTime 2022-10-16 13:40:21 +02:00
PlainDate.prototype.until.js LibJS/Tests: Correct pluralSmallestPluralDisallowedOptions largestUnit 2022-06-24 22:12:03 +01:00
PlainDate.prototype.valueOf.js
PlainDate.prototype.weekOfYear.js
PlainDate.prototype.with.js LibJS: Implement Temporal.PlainDate.prototype.with() 2021-11-08 22:19:45 +00:00
PlainDate.prototype.withCalendar.js
PlainDate.prototype.year.js
PlainDate.prototype.yearOfWeek.js LibJS: Add yearOfWeek calendar methods and properties 2022-12-26 09:30:36 +01:00