Bug 1874684 - Part 14: Return DateDuration from DifferenceDate. r=sfink
commit8c9d45d6215534444524dc7eab9d00b8c900791d
authorAndré Bargull <andre.bargull@gmail.com>
Mon, 15 Apr 2024 18:27:22 +0000 (15 18:27 +0000)
committerAndré Bargull <andre.bargull@gmail.com>
Mon, 15 Apr 2024 18:27:22 +0000 (15 18:27 +0000)
treedcea67229cddfe5634e4785367f43a8867340aec
parente9325c941dfca0119d23c0d7f7bdb321a8db9273
Bug 1874684 - Part 14: Return DateDuration from DifferenceDate. r=sfink

Similar to the previous part, prefer `DateDuration` to avoid unnecessary
`int64_t` -> `double` -> `int64_t` conversions.

Differential Revision: https://phabricator.services.mozilla.com/D198548
js/src/builtin/temporal/Duration.cpp
js/src/builtin/temporal/PlainDate.cpp
js/src/builtin/temporal/PlainDate.h
js/src/builtin/temporal/PlainDateTime.cpp