Closed anba closed 3 weeks ago
e717eb2068d5ee9942d49fff23c738e0a8141e7f and 91f2eb0192bcff0d155ed18a50a0d2173f5a533d are purely editorial. 6b4a0b394f4c06fdf7e5a048b7a429957468c0d8 is a bug fix for #180.
yes, I think this PR is better.
lgtm! note that these errors are (unless I'm mistaken) also fixed in https://github.com/tc39/proposal-intl-duration-format/pull/188, which is waiting for review/re-review
closed as fixed by #188
Fixes:
durationFormat.[[SecondsValue]]
should beduration.[[Seconds]]
Simplications:
displayRequired
to a boolean.durationFormat.[[HoursStyle]]
,durationFormat.[[HoursDisplay]]
, andduration.[[Hours]]
don't have to be inspected, instead simply testing ifneedSeparator
istrue
is sufficient.needSeparator
doesn't need to be reset. This step was only present for compatibility with previous revisions to output strings like1, 03
for{hours: 1, seconds: 3}
(see #170).