mirror of
https://github.com/tc39/test262.git
synced 2025-07-26 23:44:27 +02:00
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.
This commit is contained in:
parent
c877132488
commit
97a2e443e1
@ -1404,7 +1404,7 @@ var TemporalHelpers = {
|
|||||||
* Pacific/Apia time zone.
|
* Pacific/Apia time zone.
|
||||||
*/
|
*/
|
||||||
crossDateLineTimeZone() {
|
crossDateLineTimeZone() {
|
||||||
const { compare } = Temporal.PlainDateTime;
|
const { compare } = Temporal.PlainDate;
|
||||||
const skippedDay = new Temporal.PlainDate(2011, 12, 30);
|
const skippedDay = new Temporal.PlainDate(2011, 12, 30);
|
||||||
const transitionEpoch = 1325239200_000_000_000n;
|
const transitionEpoch = 1325239200_000_000_000n;
|
||||||
const beforeOffset = new Temporal.TimeZone("-10:00");
|
const beforeOffset = new Temporal.TimeZone("-10:00");
|
||||||
@ -1423,7 +1423,7 @@ var TemporalHelpers = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
getPossibleInstantsFor(datetime) {
|
getPossibleInstantsFor(datetime) {
|
||||||
const comparison = Temporal.PlainDate.compare(datetime.toPlainDate(), skippedDay);
|
const comparison = compare(datetime.toPlainDate(), skippedDay);
|
||||||
if (comparison === 0) {
|
if (comparison === 0) {
|
||||||
return [];
|
return [];
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user