mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 08:48:11 +00:00
LibJS: Use string::formatted() in to_string() functions
This commit is contained in:
parent
bc701658f8
commit
2e2571743b
8 changed files with 11 additions and 12 deletions
|
@ -123,7 +123,7 @@ String Value::to_string_without_side_effects() const
|
|||
case Type::BigInt:
|
||||
return m_value.as_bigint->to_string();
|
||||
case Type::Object:
|
||||
return String::format("[object %s]", as_object().class_name());
|
||||
return String::formatted("[object {}]", as_object().class_name());
|
||||
case Type::Accessor:
|
||||
return "<accessor>";
|
||||
case Type::NativeProperty:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue