Skip to content

Commit 4036192

Browse files
committed
Temporal: Fix missing variable declaration
Without this, the test fails in strict mode.
1 parent 14ae1ee commit 4036192

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/intl402/Temporal/PlainDateTime/prototype/until/adjusted-dates.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ includes: [temporalHelpers.js]
88
features: [Temporal]
99
---*/
1010

11-
for (largestUnit of ['years', 'months', 'weeks', 'days', 'hours']) {
11+
for (const largestUnit of ['years', 'months', 'weeks', 'days', 'hours']) {
1212
const d1 = new Temporal.PlainDateTime(2026, 1, 6, 11, 2, 0, 0, 0, 0, "gregory");
1313
const d2 = new Temporal.PlainDateTime(2026, 1, 7, 9, 2, 0, 0, 0, 0, "gregory");
1414
TemporalHelpers.assertDuration(d1.until(d2, { largestUnit }),

0 commit comments

Comments
 (0)