Closed Bug 1670033 Opened 4 years ago Closed 3 years ago

Implement Intl Enumeration API

Categories

(Core :: JavaScript: Internationalization API, enhancement, P3)

enhancement

Tracking

()

RESOLVED FIXED
93 Branch
Tracking Status
firefox93 --- fixed

People

(Reporter: yulia, Assigned: anba)

References

(Blocks 1 open bug, )

Details

(Keywords: dev-doc-complete, Whiteboard: [DocArea=JS])

Attachments

(8 files, 1 obsolete file)

48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review

+++ This bug was initially created as a clone of Bug #1670018 +++

Currently at stage 2

Summary from the proposal:

List supported values of options in pre-existing ECMA 402 API.

Component: JavaScript Engine → JavaScript: Internationalization API

Depends on D116011

Assignee: nobody → andrebargull
Status: NEW → ASSIGNED
Attachment #9223586 - Attachment is obsolete: true

The next part will sort linear strings, so in preparation for that, add a
new CompareStrings overload. Also change the parameters to const, so the
function can be called with const arguments.

Attachment #9223584 - Attachment description: Bug 1670033 - Part 1: Implement the "Intl Enumeration API" proposal. → Bug 1670033 - Part 2: Implement "calendar" support for the "Intl Enumeration API" proposal. r=tcampbell!
Attachment #9223585 - Attachment description: Bug 1670033 - Part 2: Add tests for Intl Enumeration proposal. → Bug 1670033 - Part 8: Add tests for canonical time zones. r=tcampbell!
Pushed by andre.bargull@gmail.com: https://hg.mozilla.org/integration/autoland/rev/5113a5c9d104 Part 1: Add CompareStrings for JSLinearString arguments. r=tcampbell https://hg.mozilla.org/integration/autoland/rev/e5214a5c19ce Part 2: Implement "calendar" support for the "Intl Enumeration API" proposal. r=tcampbell https://hg.mozilla.org/integration/autoland/rev/17d3d039f9f9 Part 3: Implement "collation" support for the "Intl Enumeration API" proposal. r=tcampbell https://hg.mozilla.org/integration/autoland/rev/d9556470db5f Part 4: Implement "currency" support for the "Intl Enumeration API" proposal. r=tcampbell https://hg.mozilla.org/integration/autoland/rev/ddfb65ae6d94 Part 5: Implement "numberingSystem" support for the "Intl Enumeration API" proposal. r=tcampbell https://hg.mozilla.org/integration/autoland/rev/dba96edd4ef9 Part 6: Implement "timeZone" support for the "Intl Enumeration API" proposal. r=tcampbell https://hg.mozilla.org/integration/autoland/rev/792df14778c6 Part 7: Implement "unit" support for the "Intl Enumeration API" proposal. r=tcampbell https://hg.mozilla.org/integration/autoland/rev/fcdca501deb3 Part 8: Add tests for canonical time zones. r=tcampbell

Looks like the code doesn't compile on GCC, whereas it is accepted by Clang. Let's see which workarounds are needed here...

Flags: needinfo?(andrebargull)
Pushed by andre.bargull@gmail.com: https://hg.mozilla.org/integration/autoland/rev/30467188ac38 Part 1: Add CompareStrings for JSLinearString arguments. r=tcampbell https://hg.mozilla.org/integration/autoland/rev/0f1250ac5b84 Part 2: Implement "calendar" support for the "Intl Enumeration API" proposal. r=tcampbell https://hg.mozilla.org/integration/autoland/rev/602274ba8d1a Part 3: Implement "collation" support for the "Intl Enumeration API" proposal. r=tcampbell https://hg.mozilla.org/integration/autoland/rev/188edb43f141 Part 4: Implement "currency" support for the "Intl Enumeration API" proposal. r=tcampbell https://hg.mozilla.org/integration/autoland/rev/e5c156bd2ac5 Part 5: Implement "numberingSystem" support for the "Intl Enumeration API" proposal. r=tcampbell https://hg.mozilla.org/integration/autoland/rev/5eab40f17dff Part 6: Implement "timeZone" support for the "Intl Enumeration API" proposal. r=tcampbell https://hg.mozilla.org/integration/autoland/rev/1cf112afb9ef Part 7: Implement "unit" support for the "Intl Enumeration API" proposal. r=tcampbell https://hg.mozilla.org/integration/autoland/rev/11f4374e88ca Part 8: Add tests for canonical time zones. r=tcampbell

The current patch works correctly with Clang >=6, but needs a small modification to be compatible with Clang 5.

Flags: needinfo?(andrebargull)
Pushed by andre.bargull@gmail.com: https://hg.mozilla.org/integration/autoland/rev/8894af262f14 Part 1: Add CompareStrings for JSLinearString arguments. r=tcampbell https://hg.mozilla.org/integration/autoland/rev/4784eb45889d Part 2: Implement "calendar" support for the "Intl Enumeration API" proposal. r=tcampbell https://hg.mozilla.org/integration/autoland/rev/64343df57cd4 Part 3: Implement "collation" support for the "Intl Enumeration API" proposal. r=tcampbell https://hg.mozilla.org/integration/autoland/rev/9899d048af19 Part 4: Implement "currency" support for the "Intl Enumeration API" proposal. r=tcampbell https://hg.mozilla.org/integration/autoland/rev/6ee2ee32d223 Part 5: Implement "numberingSystem" support for the "Intl Enumeration API" proposal. r=tcampbell https://hg.mozilla.org/integration/autoland/rev/e31aa75e0933 Part 6: Implement "timeZone" support for the "Intl Enumeration API" proposal. r=tcampbell https://hg.mozilla.org/integration/autoland/rev/791926c9f804 Part 7: Implement "unit" support for the "Intl Enumeration API" proposal. r=tcampbell https://hg.mozilla.org/integration/autoland/rev/b7e76765e759 Part 8: Add tests for canonical time zones. r=tcampbell

Docs work for this can be tracked in https://github.com/mdn/content/issues/8618

Is this shipped? It doesn't look like there is any restriction to nightly or any preference, but I wanted to make sure before starting work.

Flags: needinfo?(andrebargull)

Yes, this feature is enabled by default and will ship in Firefox 93.

Flags: needinfo?(andrebargull)

Thanks very much. All the docs and compatibility work done for this (you can see in MDN 8618 though still being reviewed. Any comments or feedback welcome.
I will mark dev-doc-complete.

The MDN docs look good to me!

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: