mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 17:55:07 +02:00
LibJS: Explicitly state integer limits for UTC offset minutes and ns
This is an editorial change in the Temporal proposal. See: https://github.com/tc39/proposal-temporal/commit/1fdf09a Note that the integer limits in the above commit are in spec headers, which we don't copy to our implementation.
This commit is contained in:
Notes:
github-actions[bot]
2025-11-12 21:21:17 +00:00
Author: https://github.com/trflynn89 Commit: https://github.com/LadybirdBrowser/ladybird/commit/bf3481b3015 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/6802
@@ -195,10 +195,7 @@ ThrowCompletionOr<GC::Ref<DateTimeFormat>> create_date_time_format(VM& vm, Funct
|
||||
// d. Let offsetMinutes be offsetNanoseconds / (6 × 10**10).
|
||||
auto offset_minutes = offset_nanoseconds / 60'000'000'000;
|
||||
|
||||
// e. Assert: offsetMinutes is an integer.
|
||||
VERIFY(trunc(offset_minutes) == offset_minutes);
|
||||
|
||||
// f. Set timeZone to FormatOffsetTimeZoneIdentifier(offsetMinutes).
|
||||
// e. Set timeZone to FormatOffsetTimeZoneIdentifier(offsetMinutes).
|
||||
time_zone = format_offset_time_zone_identifier(offset_minutes);
|
||||
}
|
||||
// 20. Else,
|
||||
|
||||
Reference in New Issue
Block a user