Fix strict mode errors in Temporal staging test (#4100)

This commit is contained in:
André Bargull 2024-05-30 16:07:35 +02:00 committed by GitHub
parent 42a9f69ab2
commit 2496577225
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 2 deletions

View File

@ -170,7 +170,7 @@ compareFormatToPartsSnapshot("2000-01-01T00:00Z", {
// sensitive to other bugs that may crop up.
const yearOneDay = new Map(
["iso8601", "gregory", "roc", "buddhist", "japanese"].map(calendar => {
hasGregorianSwitchoverBug = new Date("+001001-01-01T00:00Z")
const hasGregorianSwitchoverBug = new Date("+001001-01-01T00:00Z")
.toLocaleDateString(`en-US-u-ca-${calendar}`, { timeZone: "UTC" })
.startsWith("12");
return [calendar, hasGregorianSwitchoverBug ? 3 : 1]
@ -1267,7 +1267,6 @@ var daysInMonthCases = {
]
}
};
totalNow = 0;
for (var id of Object.keys(daysInMonthCases)) {
var {year, leap, days} = daysInMonthCases[id];
var date = hasOutdatedChineseIcuData && (id === "chinese" || id === "dangi") ? undefined : Temporal.PlainDate.from({