mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-31 13:19:05 +00:00
LibJS: Rename ToSecondsStringPrecision to ToSecondsStringPrecisionRecord
This is an editorial change in the Temporal spec.
See: 60f1052
This commit is contained in:
parent
d2e4da62c8
commit
2d11fc6d44
Notes:
sideshowbarker
2024-07-16 23:51:07 +09:00
Author: https://github.com/dlarocque
Commit: 2d11fc6d44
Pull-request: https://github.com/SerenityOS/serenity/pull/23653
Reviewed-by: https://github.com/shannonbooth ✅
7 changed files with 13 additions and 13 deletions
|
@ -355,8 +355,8 @@ ThrowCompletionOr<u64> to_temporal_date_time_rounding_increment(VM& vm, Object c
|
|||
return validate_temporal_rounding_increment(vm, increment, maximum, false);
|
||||
}
|
||||
|
||||
// 13.14 ToSecondsStringPrecision ( normalizedOptions ), https://tc39.es/proposal-temporal/#sec-temporal-tosecondsstringprecision
|
||||
ThrowCompletionOr<SecondsStringPrecision> to_seconds_string_precision(VM& vm, Object const& normalized_options)
|
||||
// 13.14 ToSecondsStringPrecisionRecord ( normalizedOptions ), https://tc39.es/proposal-temporal/#sec-temporal-tosecondsstringprecisionrecord
|
||||
ThrowCompletionOr<SecondsStringPrecision> to_seconds_string_precision_record(VM& vm, Object const& normalized_options)
|
||||
{
|
||||
// 1. Let smallestUnit be ? GetTemporalUnit(normalizedOptions, "smallestUnit", time, undefined).
|
||||
auto smallest_unit = TRY(get_temporal_unit(vm, normalized_options, vm.names.smallestUnit, UnitGroup::Time, Optional<StringView> {}));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue