mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-28 02:27:19 +02:00
LibJS: Update spec numbers for Intl Temporal operations
Several Intl overrides were removed from the Temporal proposal some time ago. See: https://github.com/tc39/proposal-temporal/commit/c08f6a8 https://github.com/tc39/proposal-temporal/commit/87ba571 https://github.com/tc39/proposal-temporal/commit/b52e320 https://github.com/tc39/proposal-temporal/commit/686b216 https://github.com/tc39/proposal-temporal/commit/b125fce
This commit is contained in:
committed by
Shannon Booth
parent
a3a6d73145
commit
fc997d74cb
Notes:
github-actions[bot]
2026-02-14 18:50:11 +00:00
Author: https://github.com/trflynn89 Commit: https://github.com/LadybirdBrowser/ladybird/commit/fc997d74cb6 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/7953 Reviewed-by: https://github.com/shannonbooth ✅
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2021-2025, Tim Flynn <trflynn89@ladybird.org>
|
||||
* Copyright (c) 2021-2026, Tim Flynn <trflynn89@ladybird.org>
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
@@ -127,9 +127,9 @@ using FormattableDateTime = Variant<
|
||||
GC::Ref<Temporal::ZonedDateTime>,
|
||||
GC::Ref<Temporal::Instant>>;
|
||||
|
||||
// https://tc39.es/proposal-temporal/#datetimeformat-value-format-record
|
||||
// NOTE: ICU does not support nanoseconds in its date-time formatter. Thus, we do do not store the epoch nanoseconds as
|
||||
// a BigInt here. Instead, we store the epoch in milliseconds as a double.
|
||||
// 15.6.14 Value Format Records, https://tc39.es/proposal-temporal/#datetimeformat-value-format-record
|
||||
// NB: ICU does not support nanoseconds in its date-time formatter. Thus, we do do not store the epoch nanoseconds as a
|
||||
// BigInt here. Instead, we store the epoch in milliseconds as a double.
|
||||
struct ValueFormat {
|
||||
Unicode::DateTimeFormat const& formatter; // [[Format]]
|
||||
double epoch_milliseconds { 0 }; // [[EpochNanoseconds]]
|
||||
|
||||
Reference in New Issue
Block a user