-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Normative: Don't output "fractionalDigits" when the value is undefined #167
Conversation
This was previously mentioned in #150 (comment). |
There's recent consensus for treating |
This isn't changed with this PR. Only the |
This PR contains way too many editorial changes. Could we split that? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Normative change LGTM
TG2 discussion and approval on the normative change: https://github.com/tc39/ecma402/blob/master/meetings/notes-2023-09-07.md#normative-dont-output-fractionaldigits-when-the-value-is-undefined-167 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Test the order of resolvedOptions in default setting Also add test to check the reading order of options based on the property returned in the default setting resolvedOptions. tc39/proposal-intl-duration-format#167 tc39/proposal-intl-duration-format#172 https://tc39.es/proposal-intl-duration-format/#sec-Intl.DurationFormat.prototype.resolvedOptions These two PRs are presenting to TC39 2023-09 meeting
Test the order of resolvedOptions in default setting Also add test to check the reading order of options based on the property returned in the default setting resolvedOptions. tc39/proposal-intl-duration-format#167 tc39/proposal-intl-duration-format#172 https://tc39.es/proposal-intl-duration-format/#sec-Intl.DurationFormat.prototype.resolvedOptions These two PRs are presenting to TC39 2023-09 meeting
test PR tc39/test262#3912 |
@ben-allen @sffc @ryzokuken This is discussed and agreed in TG2 in 2023-09-07 but we need someone to bring this up to TG1 in Nov 2023 before this can be merged. |
For consistency with other Intl objects, don't output "fractionalDigits" when its value is `undefined`.
Rebased now that #166 is merged. |
2023-11-28: This PR achieved TC39-TG1 consensus. |
Test the order of resolvedOptions in default setting Also add test to check the reading order of options based on the property returned in the default setting resolvedOptions. tc39/proposal-intl-duration-format#167 tc39/proposal-intl-duration-format#172 https://tc39.es/proposal-intl-duration-format/#sec-Intl.DurationFormat.prototype.resolvedOptions These two PRs are presenting to TC39 2023-09 meeting
Test the order of resolvedOptions in default setting Also add test to check the reading order of options based on the property returned in the default setting resolvedOptions. tc39/proposal-intl-duration-format#167 tc39/proposal-intl-duration-format#172 https://tc39.es/proposal-intl-duration-format/#sec-Intl.DurationFormat.prototype.resolvedOptions These two PRs are presenting to TC39 2023-09 meeting Swap actual/expected order Update test/intl402/DurationFormat/constructor-option-read-order.js Co-authored-by: André Bargull <[email protected]> Fix per anba suggestion
Test the order of resolvedOptions in default setting Also add test to check the reading order of options based on the property returned in the default setting resolvedOptions. tc39/proposal-intl-duration-format#167 tc39/proposal-intl-duration-format#172 https://tc39.es/proposal-intl-duration-format/#sec-Intl.DurationFormat.prototype.resolvedOptions These two PRs are presenting to TC39 2023-09 meeting Swap actual/expected order Update test/intl402/DurationFormat/constructor-option-read-order.js Co-authored-by: André Bargull <[email protected]> Fix per anba suggestion
Test the order of resolvedOptions in default setting Also add test to check the reading order of options based on the property returned in the default setting resolvedOptions. tc39/proposal-intl-duration-format#167 tc39/proposal-intl-duration-format#172 https://tc39.es/proposal-intl-duration-format/#sec-Intl.DurationFormat.prototype.resolvedOptions These two PRs are presenting to TC39 2023-09 meeting Swap actual/expected order Update test/intl402/DurationFormat/constructor-option-read-order.js Co-authored-by: André Bargull <[email protected]> Fix per anba suggestion
https://bugs.webkit.org/show_bug.cgi?id=279940 Reviewed by NOBODY (OOPS!). This patch makes the following changes to update `Intl.DurationFormat.prototype.resolvedOptions` to the latest spec: - Does not put `fractionalDigits` when it is `undefined`[1] - Put `numberingSystem` before `style`[2] [1]: tc39/proposal-intl-duration-format#167 [2]: tc39/proposal-intl-duration-format#172 * Source/JavaScriptCore/runtime/IntlDurationFormat.cpp: (JSC::IntlDurationFormat::resolvedOptions const): * JSTests/test262/expectations.yaml:
https://bugs.webkit.org/show_bug.cgi?id=279940 Reviewed by NOBODY (OOPS!). This patch makes the following changes to update `Intl.DurationFormat.prototype.resolvedOptions` to the latest spec: - Does not put `fractionalDigits` when it is `undefined`[1] - Put `numberingSystem` before `style`[2] [1]: tc39/proposal-intl-duration-format#167 [2]: tc39/proposal-intl-duration-format#172 * Source/JavaScriptCore/runtime/IntlDurationFormat.cpp: (JSC::IntlDurationFormat::resolvedOptions const): * JSTests/test262/expectations.yaml: * JSTests/stress/intl-durationformat.js: (test):
https://bugs.webkit.org/show_bug.cgi?id=279940 Reviewed by Yusuke Suzuki. This patch makes the following changes to update `Intl.DurationFormat.prototype.resolvedOptions` to the latest spec: - Does not put `fractionalDigits` when it is `undefined`[1] - Put `numberingSystem` before `style`[2] [1]: tc39/proposal-intl-duration-format#167 [2]: tc39/proposal-intl-duration-format#172 * Source/JavaScriptCore/runtime/IntlDurationFormat.cpp: (JSC::IntlDurationFormat::resolvedOptions const): * JSTests/test262/expectations.yaml: * JSTests/stress/intl-durationformat.js: (test): Canonical link: https://commits.webkit.org/283901@main
https://bugs.webkit.org/show_bug.cgi?id=279940 Reviewed by Yusuke Suzuki. This patch makes the following changes to update `Intl.DurationFormat.prototype.resolvedOptions` to the latest spec: - Does not put `fractionalDigits` when it is `undefined`[1] - Put `numberingSystem` before `style`[2] [1]: tc39/proposal-intl-duration-format#167 [2]: tc39/proposal-intl-duration-format#172 * Source/JavaScriptCore/runtime/IntlDurationFormat.cpp: (JSC::IntlDurationFormat::resolvedOptions const): * JSTests/test262/expectations.yaml: * JSTests/stress/intl-durationformat.js: (test): Canonical link: https://commits.webkit.org/283901@main
For consistency with other Intl objects, don't output "fractionalDigits" when its value is
undefined
.Applies on top #166.