mirror of
https://github.com/tc39/test262.git
synced 2025-07-29 00:44:32 +02:00
Fix strict mode errors in Temporal staging test (#4100)
This commit is contained in:
parent
42a9f69ab2
commit
2496577225
@ -170,7 +170,7 @@ compareFormatToPartsSnapshot("2000-01-01T00:00Z", {
|
|||||||
// sensitive to other bugs that may crop up.
|
// sensitive to other bugs that may crop up.
|
||||||
const yearOneDay = new Map(
|
const yearOneDay = new Map(
|
||||||
["iso8601", "gregory", "roc", "buddhist", "japanese"].map(calendar => {
|
["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" })
|
.toLocaleDateString(`en-US-u-ca-${calendar}`, { timeZone: "UTC" })
|
||||||
.startsWith("12");
|
.startsWith("12");
|
||||||
return [calendar, hasGregorianSwitchoverBug ? 3 : 1]
|
return [calendar, hasGregorianSwitchoverBug ? 3 : 1]
|
||||||
@ -1267,7 +1267,6 @@ var daysInMonthCases = {
|
|||||||
]
|
]
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
totalNow = 0;
|
|
||||||
for (var id of Object.keys(daysInMonthCases)) {
|
for (var id of Object.keys(daysInMonthCases)) {
|
||||||
var {year, leap, days} = daysInMonthCases[id];
|
var {year, leap, days} = daysInMonthCases[id];
|
||||||
var date = hasOutdatedChineseIcuData && (id === "chinese" || id === "dangi") ? undefined : Temporal.PlainDate.from({
|
var date = hasOutdatedChineseIcuData && (id === "chinese" || id === "dangi") ? undefined : Temporal.PlainDate.from({
|
||||||
|
Loading…
x
Reference in New Issue
Block a user