1
Fork 0
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:
Timothy Flynn 2022-07-16 12:11:20 -04:00 committed by Linus Groh
parent 9e50f25ac4
commit bb9a44cd50
3 changed files with 87 additions and 16 deletions

View file

@ -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);