1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 17:37:37 +00:00

LibJS: Remove DeprecatedString usage from Intl.PluralRules

This can make due with a StringView.
This commit is contained in:
Timothy Flynn 2023-01-21 22:22:11 -05:00 committed by Tim Flynn
parent e45434c0c7
commit d2ec31cbdb
2 changed files with 3 additions and 4 deletions

View file

@ -18,7 +18,7 @@ PluralRules::PluralRules(Object& prototype)
}
// 16.5.1 GetOperands ( s ), https://tc39.es/ecma402/#sec-getoperands
::Locale::PluralOperands get_operands(DeprecatedString const& string)
::Locale::PluralOperands get_operands(StringView string)
{
// 1.Let n be ! ToNumber(s).
auto number = string.to_double(AK::TrimWhitespace::Yes).release_value();