mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-02 06:09:08 +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
|
@ -71,7 +71,7 @@ Optional<ISOYearMonth> regulate_iso_year_month(GlobalObject& global_object, doub
|
|||
return {};
|
||||
}
|
||||
|
||||
// b. Return the new Record { [[Year]]: year, [[Month]]: month }.
|
||||
// b. Return the Record { [[Year]]: year, [[Month]]: month }.
|
||||
return ISOYearMonth { .year = static_cast<i32>(year), .month = static_cast<u8>(month), .reference_iso_day = 0 };
|
||||
}
|
||||
|
||||
|
@ -131,7 +131,7 @@ ISOYearMonth balance_iso_year_month(double year, double month)
|
|||
// 3. Set month to (month − 1) modulo 12 + 1.
|
||||
month = fmod(month - 1, 12) + 1;
|
||||
|
||||
// 4. Return the new Record { [[Year]]: year, [[Month]]: month }.
|
||||
// 4. Return the Record { [[Year]]: year, [[Month]]: month }.
|
||||
return ISOYearMonth { .year = static_cast<i32>(year), .month = static_cast<u8>(month), .reference_iso_day = 0 };
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue