1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 12:57:34 +00:00

LibJS: Replace RoundTowardsZero with truncate

This is an editorial change in the Temporal spec. See:
409ab66
This commit is contained in:
Timothy Flynn 2022-10-14 09:29:16 -04:00 committed by Linus Groh
parent 019211bcb4
commit 4fbec2e8b3
6 changed files with 12 additions and 12 deletions

View file

@ -295,7 +295,7 @@ DateDurationRecord difference_iso_date(VM& vm, i32 year1, u8 month1, u8 day1, i3
// h. If largestUnit is "week", then
if (largest_unit == "week"sv) {
// i. Set weeks to RoundTowardsZero(days / 7).
// i. Set weeks to truncate(days / 7).
weeks = trunc(days / 7);
// ii. Set days to remainder(days, 7).