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:
parent
e45434c0c7
commit
d2ec31cbdb
2 changed files with 3 additions and 4 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue