diff options
author | Linus Groh <mail@linusgroh.de> | 2020-12-06 16:55:19 +0000 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-12-06 18:52:52 +0100 |
commit | 5eb1f752ab1db98d3825320f20e4a543b71bffe6 (patch) | |
tree | 9dcf8874abc6ceec0f1e596c05d0928d27616deb /Libraries/LibJS/Runtime/VM.cpp | |
parent | 2313e583930bd0bd8eeec18afc8d72c4b8350093 (diff) | |
download | serenity-5eb1f752ab1db98d3825320f20e4a543b71bffe6.zip |
LibJS: Use new format functions everywhere
This changes the remaining uses of the following functions across LibJS:
- String::format() => String::formatted()
- dbg() => dbgln()
- printf() => out(), outln()
- fprintf() => warnln()
I also removed the relevant 'LogStream& operator<<' overloads as they're
not needed anymore.
Diffstat (limited to 'Libraries/LibJS/Runtime/VM.cpp')
-rw-r--r-- | Libraries/LibJS/Runtime/VM.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Libraries/LibJS/Runtime/VM.cpp b/Libraries/LibJS/Runtime/VM.cpp index 75a966e1b2..29fad69f4b 100644 --- a/Libraries/LibJS/Runtime/VM.cpp +++ b/Libraries/LibJS/Runtime/VM.cpp @@ -47,7 +47,7 @@ VM::VM() { m_empty_string = m_heap.allocate_without_global_object<PrimitiveString>(String::empty()); for (size_t i = 0; i < 128; ++i) { - m_single_ascii_character_strings[i] = m_heap.allocate_without_global_object<PrimitiveString>(String::format("%c", i)); + m_single_ascii_character_strings[i] = m_heap.allocate_without_global_object<PrimitiveString>(String::formatted("{:c}", i)); } m_scope_object_shape = m_heap.allocate_without_global_object<Shape>(Shape::ShapeWithoutGlobalObjectTag::Tag); |