LibJS: Adjust language around Temporal list lengths

This is an editorial change in the Temporal proposal. See:
https://github.com/tc39/proposal-temporal/commit/1e043d6
This commit is contained in:
Timothy Flynn 2026-02-14 11:31:29 -05:00 committed by Shannon Booth
parent f3f8311462
commit 25ac3d2403

View file

@ -284,12 +284,12 @@ ThrowCompletionOr<Crypto::SignedBigInteger> get_epoch_nanoseconds_for(VM& vm, St
// 11.1.12 DisambiguatePossibleEpochNanoseconds ( possibleEpochNs, timeZone, isoDateTime, disambiguation ), https://tc39.es/proposal-temporal/#sec-temporal-disambiguatepossibleepochnanoseconds
ThrowCompletionOr<Crypto::SignedBigInteger> disambiguate_possible_epoch_nanoseconds(VM& vm, Vector<Crypto::SignedBigInteger> possible_epoch_ns, StringView time_zone, ISODateTime const& iso_date_time, Disambiguation disambiguation)
{
// 1. Let n be possibleEpochNs's length.
// 1. Let n be the number of elements in possibleEpochNs.
auto n = possible_epoch_ns.size();
// 2. If n = 1, then
if (n == 1) {
// a. Return possibleEpochNs[0].
// a. Return the sole element of possibleEpochNs.
return move(possible_epoch_ns[0]);
}