1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 15:28:11 +00:00

LibJS: Use String::formatted() in various other places

This commit is contained in:
Linus Groh 2020-10-04 15:18:52 +01:00 committed by Andreas Kling
parent 2e2571743b
commit 123f98201e
7 changed files with 23 additions and 22 deletions

View file

@ -33,7 +33,7 @@ BoundFunction::BoundFunction(GlobalObject& global_object, Function& target_funct
: Function::Function(*global_object.function_prototype(), bound_this, move(arguments))
, m_target_function(&target_function)
, m_constructor_prototype(constructor_prototype)
, m_name(String::format("bound %s", target_function.name().characters()))
, m_name(String::formatted("bound {}", target_function.name()))
, m_length(length)
{
}