Closed ben-allen closed 6 months ago
Supersedes #186
Incorporated feedback, made a few additional changes:
isFirstUnitDisplayed
and isSignDisplayed
aliases to signDisplayed
throughoutFormatHours
, FormatMinutes
, FormatSeconds
to FormatNumericHours
, FormatNumericMinutes
, FormatNumericSeconds
to clarify usageSetFractionalDigitOptions
Justification for removing SetFractionalDigitOptions
: Talked it over with @ptomato, who observed that it could be confusing to add nfOpts
properties in multiple AOs due to how setting properties can trigger setters in user code. Options as I see it:
SetFractionalDigitOptions
, since we're passing *null*
to OrdinaryObjectCreate
when creating nfOpts
objects and so, if I understand it correctly, the poisoned object problem won't actually occur. However: creating properties on objects across multiple AOs is not currently something that happens in either 402 or TemporalSetFractionalDigitOptions
to return a Record which is then used by the caller to create nfOpts
properties. Note: this doesn't actually save that many repeated steps.requesting re-review! @ryzokuken @FrankYFTang
Requesting re-review! @FrankYFTang @ryzokuken
I've pushed a major update reflecting feedback from @ryzokuken and incorporating some additional bugfixes.
New revision ready for review! Much more solid thanks to @ryzokuken's feedback, but could still use more eyes. @gibson042 @FrankYFTang @sffc @anba
Fixes https://github.com/tc39/proposal-intl-duration-format/issues/161