From d865ffeb2d5014e0ad543ceb9d858ba6dea25530 Mon Sep 17 00:00:00 2001 From: Philip Chimento Date: Wed, 10 Apr 2024 07:48:24 -0700 Subject: [PATCH] Use correct keys in non-iso-calendars.js Using Object.keys() of the expected values in each case decouples these tests. --- test/staging/Intl402/Temporal/old/non-iso-calendars.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/test/staging/Intl402/Temporal/old/non-iso-calendars.js b/test/staging/Intl402/Temporal/old/non-iso-calendars.js index b1b8c5c9978..1972078db53 100644 --- a/test/staging/Intl402/Temporal/old/non-iso-calendars.js +++ b/test/staging/Intl402/Temporal/old/non-iso-calendars.js @@ -854,8 +854,7 @@ var tests = { } } }; -var calendars = Object.keys(addMonthsCases); -for (var id of calendars) { +for (var id of Object.keys(addMonthsCases)) { for (var [unit, {duration, results, startDate}] of Object.entries(tests)) { var values = results[id]; duration = Temporal.Duration.from(duration); @@ -1269,7 +1268,7 @@ var daysInMonthCases = { } }; totalNow = 0; -for (var id of calendars) { +for (var id of Object.keys(daysInMonthCases)) { var {year, leap, days} = daysInMonthCases[id]; var date = hasOutdatedChineseIcuData && (id === "chinese" || id === "dangi") ? undefined : Temporal.PlainDate.from({ year,