Bug 1874684 - Part 34: Lazily allocate PlainDateObject in DifferenceISODateTime....
commit1d5bd722fe1f914e621cd8d9f3c2b6603f63187b
authorAndré Bargull <andre.bargull@gmail.com>
Mon, 15 Apr 2024 18:27:30 +0000 (15 18:27 +0000)
committerAndré Bargull <andre.bargull@gmail.com>
Mon, 15 Apr 2024 18:27:30 +0000 (15 18:27 +0000)
tree00c47c5dfa90e7767d901e8cccaa3fd941dabd3b
parent025b794e350ca5bc4b7211ed0b4bb21ee962970b
Bug 1874684 - Part 34: Lazily allocate PlainDateObject in DifferenceISODateTime. r=sfink

Move the `PlainDateObject` allocation into the `CalendarDateUntilSlow` slow path.

Depends on D204397

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