Skip to content

Commit

Permalink
Fix strict mode errors
Browse files Browse the repository at this point in the history
  • Loading branch information
anba committed Jul 10, 2024
1 parent 08e1aa8 commit e5d5293
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/built-ins/Temporal/PlainMonthDay/from/basic.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}`);
Expand All @@ -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 });
Expand Down

0 comments on commit e5d5293

Please sign in to comment.