From 97a2e443e1e260baa29d12c8a46d59f287055744 Mon Sep 17 00:00:00 2001 From: Philip Chimento Date: Wed, 17 Jan 2024 15:28:05 -0800 Subject: [PATCH] Temporal Helpers: Remove unused variable We stored Temporal.PlainDateTime.compare in a variable for convenience but then used Temporal.PlainDate.compare instead. The variable was actually intended to be used here. No change in functionality. --- harness/temporalHelpers.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/harness/temporalHelpers.js b/harness/temporalHelpers.js index 6e25d8ba16..113db3da67 100644 --- a/harness/temporalHelpers.js +++ b/harness/temporalHelpers.js @@ -1404,7 +1404,7 @@ var TemporalHelpers = { * Pacific/Apia time zone. */ crossDateLineTimeZone() { - const { compare } = Temporal.PlainDateTime; + const { compare } = Temporal.PlainDate; const skippedDay = new Temporal.PlainDate(2011, 12, 30); const transitionEpoch = 1325239200_000_000_000n; const beforeOffset = new Temporal.TimeZone("-10:00"); @@ -1423,7 +1423,7 @@ var TemporalHelpers = { } getPossibleInstantsFor(datetime) { - const comparison = Temporal.PlainDate.compare(datetime.toPlainDate(), skippedDay); + const comparison = compare(datetime.toPlainDate(), skippedDay); if (comparison === 0) { return []; }