Fix strict mode errors

This commit is contained in:
André Bargull 2024-07-10 13:54:18 +02:00 committed by Ms2ger
parent 08e1aa808a
commit 507c28b3f9
1 changed files with 2 additions and 2 deletions

View File

@ -16,7 +16,7 @@ const options = [
];
options.forEach((opt) => {
const optionsDesc = opt && JSON.stringify(opt);
result = Temporal.PlainMonthDay.from({ year: 2021, month: 7, day: 3 }, opt);
let result = Temporal.PlainMonthDay.from({ year: 2021, month: 7, day: 3 }, opt);
TemporalHelpers.assertPlainMonthDay(result, "M07", 3, `month 7, day 3, with year, options = ${optionsDesc}`);
result = Temporal.PlainMonthDay.from({ year: 2021, month: 12, day: 31 }, opt);
TemporalHelpers.assertPlainMonthDay(result, "M12", 31, `month 12, day 31, with year, options = ${optionsDesc}`);
@ -27,7 +27,7 @@ options.forEach((opt) => {
});
TemporalHelpers.ISOMonths.forEach(({ month, monthCode, daysInMonth }) => {
result = Temporal.PlainMonthDay.from({ month, day: daysInMonth });
let result = Temporal.PlainMonthDay.from({ month, day: daysInMonth });
TemporalHelpers.assertPlainMonthDay(result, monthCode, daysInMonth, `month ${month}, day ${daysInMonth}`);
result = Temporal.PlainMonthDay.from({ monthCode, day: daysInMonth });