LibJS: Change variable name of parsed time zone offset

This is an editorial change in the Temporal proposal. See:
https://github.com/tc39/proposal-temporal/commit/30d17d3
This commit is contained in:
Timothy Flynn 2024-12-11 09:23:29 -05:00 committed by Tim Flynn
parent 99073c0561
commit b9ac4557d6
Notes: github-actions[bot] 2024-12-11 16:45:02 +00:00

View file

@ -458,8 +458,8 @@ TimeZone parse_time_zone_identifier(ParseResult const& parse_result)
// a. Assert: parseResult contains a UTCOffset[~SubMinutePrecision] Parse Node.
VERIFY(parse_result.time_zone_offset.has_value());
// b. Let offsetString be the source text matched by the UTCOffset[~SubMinutePrecision] Parse Node contained within parseResult.
// c. Let offsetNanoseconds be ! ParseDateTimeUTCOffset(offsetString).
// b. Let offset be the source text matched by the UTCOffset[~SubMinutePrecision] Parse Node contained within parseResult.
// c. Let offsetNanoseconds be ! ParseDateTimeUTCOffset(CodePointsToString(offset)).
auto offset_nanoseconds = parse_date_time_utc_offset(parse_result.time_zone_offset->source_text);
// d. Let offsetMinutes be offsetNanoseconds / (60 × 10**9).