1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-06-01 03:18:11 +00:00

LibJS+LibWeb: Rename number_to_string to number_to_deprecated_string

This commit is contained in:
Timothy Flynn 2023-01-13 11:43:01 -05:00 committed by Linus Groh
parent c79d20be58
commit 8a88d4434f
5 changed files with 8 additions and 8 deletions

View file

@ -296,7 +296,7 @@ bool MathematicalValue::is_zero() const
DeprecatedString MathematicalValue::to_deprecated_string() const
{
return m_value.visit(
[](double value) { return number_to_string(value, NumberToStringMode::WithoutExponent); },
[](double value) { return number_to_deprecated_string(value, NumberToStringMode::WithoutExponent); },
[](Crypto::SignedBigInteger const& value) { return value.to_base_deprecated(10); },
[](auto) -> DeprecatedString { VERIFY_NOT_REACHED(); });
}