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

Set values for IE/Edge for JavaScript Intl #4789

Merged
merged 1 commit into from
Sep 9, 2019

Conversation

queengooborg
Copy link
Collaborator

This PR sets all the IE and Edge JavaScript values for the Intl built-ins (and corresponding Array.toLocaleString entries) based upon manual testing, or mirroring IE data onto Edge. Data is as follows:

javascript.builtins.Array.toLocaleString.locales - false
javascript.builtins.Array.toLocaleString.options - false
javascript.builtins.Intl - already 11 in IE
javascript.builtins.Intl.Collator.caseFirst - false
javascript.builtins.Intl.Collator.compare - already 11 in IE
javascript.builtins.Intl.Collator.prototype - already 11 in IE
javascript.builtins.Intl.Collator.resolvedOptions - already 11 in IE
javascript.builtins.Intl.Collator.supportedLocalesOf - already 11 in IE
javascript.builtins.Intl.DateTimeFormat.hourCycle - 18
javascript.builtins.Intl.DateTimeFormat.iana_time_zone_names - 14
javascript.builtins.Intl.DateTimeFormat.prototype - already 11 in IE
javascript.builtins.Intl.DateTimeFormat.supportedLocalesOf - already 11 in IE
javascript.builtins.Intl.NumberFormat.format - already 11 in IE
javascript.builtins.Intl.NumberFormat.formatToParts - 11
javascript.builtins.Intl.NumberFormat.prototype - already 11 in IE
javascript.builtins.Intl.NumberFormat.supportedLocalesOf - already 11 in IE
javascript.builtins.Intl.PluralRules.PluralRules - 18
javascript.builtins.Intl.PluralRules.prototype - 18
javascript.builtins.Intl.PluralRules.resolvedOptions - 18
javascript.builtins.Intl.PluralRules.select - 18
javascript.builtins.Intl.PluralRules.supportedLocalesOf - 18

@queengooborg queengooborg added the data:js 📟 Compat data for JS/ECMAScript features. https://developer.mozilla.org/docs/Web/JavaScript label Sep 8, 2019
Copy link
Member

@Elchi3 Elchi3 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Caniuse says "Intl.PluralRules exists, but methods are not implemented." https://caniuse.com/#feat=intl-pluralrules
I would mark it as false maybe with the same note on the object.

@queengooborg
Copy link
Collaborator Author

Hmm... I question the validity of CanIUse's data, as all the methods I've tested are implemented. Furthermore, it appears that an example using locales functions as expected in Edge 18:

Screenshot from 2019-09-09 05-16-32

@Elchi3
Copy link
Member

Elchi3 commented Sep 9, 2019

It is indeed implemented in chakra! chakra-core/ChakraCore#4940

Copy link
Member

@Elchi3 Elchi3 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, I'd say this is good to go! 👍

@Elchi3 Elchi3 merged commit 6d37a85 into mdn:master Sep 9, 2019
@queengooborg queengooborg deleted the javascript/ie-edge-intl branch September 9, 2019 12:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
data:js 📟 Compat data for JS/ECMAScript features. https://developer.mozilla.org/docs/Web/JavaScript
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants