Skip to content
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

Intl.NumberFormat incorrect resolved options - style #41303

Closed
snowystinger opened this issue Dec 23, 2021 · 2 comments
Closed

Intl.NumberFormat incorrect resolved options - style #41303

snowystinger opened this issue Dec 23, 2021 · 2 comments
Labels
i18n-api Issues and PRs related to the i18n implementation.

Comments

@snowystinger
Copy link

Version

15.14.0

Platform

Darwin 21.2.0 Darwin Kernel Version 21.2.0: Sun Nov 28 20:28:41 PST 2021; root:xnu-8019.61.5~1/RELEASE_ARM64_T6000 arm64

Subsystem

No response

What steps will reproduce the bug?

(new Intl.NumberFormat('de-DE', {style: 'unit', unit: 'degree'})).resolvedOptions().style === 'unit'
(new Intl.NumberFormat('de-DE', {style: 'percent'})).resolvedOptions().style === 'percent'

How often does it reproduce? Is there a required condition?

No response

What is the expected behavior?

both lines should return true

What do you see instead?

No response

Additional information

No response

@snowystinger
Copy link
Author

Probably related to #39050

@Mesteery Mesteery added the i18n-api Issues and PRs related to the i18n implementation. label Dec 23, 2021
@targos
Copy link
Member

targos commented Jan 3, 2022

Both lines return true in all supported versions of Node.js (12, 14, 16 and 17).

@targos targos closed this as completed Jan 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
i18n-api Issues and PRs related to the i18n implementation.
Projects
None yet
Development

No branches or pull requests

3 participants