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

new Intl.getCanonicalLocales() should fail with not a constructor #3203

Closed
dilijev opened this issue Jun 22, 2017 · 0 comments
Closed

new Intl.getCanonicalLocales() should fail with not a constructor #3203

dilijev opened this issue Jun 22, 2017 · 0 comments
Assignees
Labels
Milestone

Comments

@dilijev
Copy link
Contributor

dilijev commented Jun 22, 2017

For example:

new Intl.DateTimeFormat.supportedLocalesOf();

outputs:

TypeError: Function 'Intl.DateTimeFormat.supportedLocalesOf' is not a constructor
   at Global code (e:\work\intl-icu-xplat\test\iswellformedlanguagetag.js:2:1)

Similar should happen for

new Intl.getCanonicalLocales();

Instead, an object is constructed.

@dilijev dilijev added this to the 1.6 milestone Jun 22, 2017
@dilijev dilijev self-assigned this Jun 22, 2017
@dilijev dilijev added the Bug label Jun 22, 2017
dilijev added a commit to dilijev/ChakraCore that referenced this issue Jul 12, 2017
dilijev added a commit to dilijev/ChakraCore that referenced this issue Jul 12, 2017
chakrabot pushed a commit that referenced this issue Jul 20, 2017
…: name, toString, cannot call with new

Merge pull request #3323 from dilijev:intl-gcl-fix

Fixes #3203
Fixes #3204
chakrabot pushed a commit that referenced this issue Jul 20, 2017
…calLocales: name, toString, cannot call with new

Merge pull request #3323 from dilijev:intl-gcl-fix

Fixes #3203
Fixes #3204
chakrabot pushed a commit that referenced this issue Jul 20, 2017
…ntl.getCanonicalLocales: name, toString, cannot call with new

Merge pull request #3323 from dilijev:intl-gcl-fix

Fixes #3203
Fixes #3204
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant