mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 08:36:15 +00:00
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:
@@ -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).
|
||||
|
||||
Reference in New Issue
Block a user