mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-01 23:26:36 +00:00
LibJS: Reflect Record wording editorial change in the Temporal spec
See: c8f14d0
This commit is contained in:
parent
74ee1c9a8c
commit
0cdad283c0
Notes:
sideshowbarker
2024-07-18 05:34:36 +09:00
Author: https://github.com/linusg
Commit: 0cdad283c0
Pull-request: https://github.com/SerenityOS/serenity/pull/9478
Reviewed-by: https://github.com/IdanHo ✅
7 changed files with 13 additions and 13 deletions
|
@ -156,7 +156,7 @@ Optional<ISODateTime> get_iso_parts_from_epoch(BigInt const& epoch_nanoseconds)
|
|||
// 11. Let nanosecond be remainderNs modulo 1000.
|
||||
auto nanosecond = static_cast<u16>(remainder_ns % 1000);
|
||||
|
||||
// 12. Return the new Record { [[Year]]: year, [[Month]]: month, [[Day]]: day, [[Hour]]: hour, [[Minute]]: minute, [[Second]]: second, [[Millisecond]]: millisecond, [[Microsecond]]: microsecond, [[Nanosecond]]: nanosecond }.
|
||||
// 12. Return the Record { [[Year]]: year, [[Month]]: month, [[Day]]: day, [[Hour]]: hour, [[Minute]]: minute, [[Second]]: second, [[Millisecond]]: millisecond, [[Microsecond]]: microsecond, [[Nanosecond]]: nanosecond }.
|
||||
return ISODateTime { .year = year, .month = month, .day = day, .hour = hour, .minute = minute, .second = second, .millisecond = millisecond, .microsecond = microsecond, .nanosecond = nanosecond };
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue