mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 14:07:46 +00:00
LibJS: Implement Intl.NumberFormat V3's [[RoundingPriority]] changes
This commit is contained in:
parent
9e50f25ac4
commit
bb9a44cd50
3 changed files with 87 additions and 16 deletions
|
@ -24,7 +24,6 @@ public:
|
|||
Invalid,
|
||||
SignificantDigits,
|
||||
FractionDigits,
|
||||
CompactRounding, // FIXME: Remove this when corresponding AOs are updated for NumberFormat V3.
|
||||
MorePrecision,
|
||||
LessPrecision,
|
||||
};
|
||||
|
@ -255,7 +254,8 @@ struct FormatResult {
|
|||
};
|
||||
|
||||
struct RawFormatResult : public FormatResult {
|
||||
int digits { 0 }; // [[IntegerDigitsCount]]
|
||||
int digits { 0 }; // [[IntegerDigitsCount]]
|
||||
int rounding_magnitude { 0 }; // [[RoundingMagnitude]]
|
||||
};
|
||||
|
||||
int currency_digits(StringView currency);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue