DurationFormat resolvedOptions() output should always include fractionalDigits
#964
Labels
behavior
c: datetime
Component: dates, times, timezones
needs consensus
normative
s: discuss
Status: TG2 must discuss to move forward
Objects returned from
resolvedOptions()
sometimes omit fields, but generally only when they have no meaningful interpretation (e.g., NumberFormat {minimum,maximum}{Fraction,Significant}Digits or Collatornumeric
/caseFirst
when those are not relevant extension keys).But DurationFormat omits
fractionalDigits
whenever input options do not define a numeric value for it, which seems odd. Rather than havingObject.getOwnPropertyDescriptor(new Intl.DurationFormat().resolvedOptions(), "fractionalDigits")
returnundefined
(implicitly propagating a value that might be defined onObject.prototype
), I'd like to see it return{ value: undefined, writable: true, enumerable: true, configurable: true }
, such that the shape of returned objects is always consistent.The text was updated successfully, but these errors were encountered: