Enable NumberFormat v3
Categories
(Core :: JavaScript: Internationalization API, task, P3)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox116 | --- | fixed |
People
(Reporter: gregtatum, Assigned: anba)
References
(Blocks 1 open bug)
Details
(Keywords: dev-doc-complete)
Attachments
(12 files)
|
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 | |
|
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 was implemented in Bug 1763607, but is currently Nightly-only. This bug is for tracking enabling the features. I didn't see another one already filed.
| Reporter | ||
Updated•3 years ago
|
Updated•3 years ago
|
Updated•3 years ago
|
| Assignee | ||
Comment 1•3 years ago
|
||
Apply the Intl mathematical value limits from [1] to our code. The minimum and
maximum exponents are now limited by Number.MIN_VALUE resp. Number.MAX_VALUE,
which are both way below our previous limit of 9'999'999.
Also removes the BigInt exponent check, because JS::BigInt::MaxDigitLength
already ensured that the maximum exponent has a reasonable value for BigInts.
Updates the tests to ensure new limits are correctly applied.
[1] https://github.com/tc39/proposal-intl-numberformat-v3/pull/128
| Assignee | ||
Comment 2•3 years ago
|
||
DecimalNumber is no longer needed after part 1, so we can remove it from
the source tree.
Depends on D179942
| Assignee | ||
Comment 3•3 years ago
|
||
Update useGrouping option parsing to allow the strings "true" and "false",
but reject any other strings.
Depends on D179943
| Assignee | ||
Comment 4•3 years ago
|
||
Updates SetNumberFormatDigitOptions per [1] and [2]. The next two parts will
update Intl.PluralRules to process the new roundingMode, roundingIncrement,
and trailingZeroDisplay options.
[1] https://github.com/tc39/proposal-intl-numberformat-v3/pull/102
[2] https://github.com/tc39/proposal-intl-numberformat-v3/pull/130
Depends on D179944
| Assignee | ||
Comment 5•3 years ago
|
||
Required updates for the next patch in this stack.
Also replaces PluralRulesOptions::RoundingPriority with an alias to
NumberFormatOptions::RoundingPriority, so we don't have to duplicate the
RoundingPriority and RoundingMode enums.
Depends on D179945
| Assignee | ||
Comment 6•3 years ago
|
||
Second part to implement the changes from [1].
[1] https://github.com/tc39/proposal-intl-numberformat-v3/pull/130
Depends on D179946
| Assignee | ||
Comment 7•3 years ago
|
||
Removes the NIGHTLY_BUILD guards around Intl.NumberFormat v3 changes. The next
patches will perform further clean-ups.
Depends on D179948
| Assignee | ||
Comment 8•3 years ago
|
||
This to-do note is no longer necessary, because the issue has been fixed at
some point in the spec.
Depends on D179949
| Assignee | ||
Comment 9•3 years ago
|
||
Sync the implementation of Intl.NumberFormat with the current spec.
Depends on D179950
| Assignee | ||
Comment 10•3 years ago
|
||
Sync the implementation of Intl.PluralRules with the current spec text.
Depends on D179951
| Assignee | ||
Comment 11•3 years ago
|
||
Part 7 enabled NumberFormat v3 by default, so we no longer have to check
release_or_beta for the tests.
Depends on D179952
| Assignee | ||
Comment 12•3 years ago
|
||
Also remove the release_or_beta from the test262 tests.
Depends on D179953
Comment 14•3 years ago
|
||
Comment 15•3 years ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/8535279b218b
https://hg.mozilla.org/mozilla-central/rev/162c97d8ff6d
https://hg.mozilla.org/mozilla-central/rev/c8a92856eb65
https://hg.mozilla.org/mozilla-central/rev/dd7ba758f201
https://hg.mozilla.org/mozilla-central/rev/487936c8e30f
https://hg.mozilla.org/mozilla-central/rev/cc76bb24ee42
https://hg.mozilla.org/mozilla-central/rev/9f247edc6c08
https://hg.mozilla.org/mozilla-central/rev/18e70bddf7f3
https://hg.mozilla.org/mozilla-central/rev/2fdf668a9aa4
https://hg.mozilla.org/mozilla-central/rev/62d93979c1b0
https://hg.mozilla.org/mozilla-central/rev/0a739a37e5f7
https://hg.mozilla.org/mozilla-central/rev/24bc1e52a267
Comment 16•2 years ago
|
||
FF116 MDN docs work for this can be tracked in https://github.com/mdn/content/issues/27746 (in review). This was mostly BCD updates, and updates to include the new changes to PluralRules constructor options that other browsers do not appear to have implemented yet.
Description
•