Closed ben-allen closed 6 months ago
This PR will solve the accessing non-existent slots issue. However, it is not solving the output problem completely. Consider the following input
{"hours":1,"minutes":0,"seconds":0,"milliseconds":1}
{"hours":1,"minutes":0,"seconds":0,"microseconds":1}
{"hours":1,"minutes":0,"seconds":0,"nanoseconds":1}
The output in the algorithm will not set displayRequired to true because duration.[[Seconds]] is 0.
marking this one as closed, since #188 fixed both:
fix https://github.com/tc39/proposal-intl-duration-format/issues/190:
PartitionDurationFormatPattern
incorrectly tried to draw value of hours and seconds from DurationFormat object rather than from Duration Record.