mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-27 19:59:17 +00:00
LibJS: Use string::formatted() in to_string() functions
This commit is contained in:
committed by
Andreas Kling
parent
bc701658f8
commit
2e2571743b
@@ -850,7 +850,7 @@ Value Object::to_string() const
|
||||
return {};
|
||||
return string;
|
||||
}
|
||||
return js_string(heap(), String::format("[object %s]", class_name()));
|
||||
return js_string(heap(), String::formatted("[object {}]", class_name()));
|
||||
}
|
||||
|
||||
Value Object::invoke(const StringOrSymbol& property_name, Optional<MarkedValueList> arguments)
|
||||
|
||||
Reference in New Issue
Block a user