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•2 years ago
|
Updated•2 years ago
|
Updated•2 years ago
|
Assignee | ||
Comment 1•1 year 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•1 year ago
|
||
DecimalNumber
is no longer needed after part 1, so we can remove it from
the source tree.
Depends on D179942
Assignee | ||
Comment 3•1 year ago
|
||
Update useGrouping
option parsing to allow the strings "true"
and "false"
,
but reject any other strings.
Depends on D179943
Assignee | ||
Comment 4•1 year 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•1 year 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•1 year 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•1 year 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•1 year 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•1 year ago
|
||
Sync the implementation of Intl.NumberFormat
with the current spec.
Depends on D179950
Assignee | ||
Comment 10•1 year ago
|
||
Sync the implementation of Intl.PluralRules
with the current spec text.
Depends on D179951
Assignee | ||
Comment 11•1 year 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•1 year ago
|
||
Also remove the release_or_beta
from the test262 tests.
Depends on D179953
Comment 14•1 year ago
|
||
Comment 15•1 year 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•1 year 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
•