Everywhere: Remove sv suffix from format string literals

This prevents the compile-time checks that would catch errors in the
format invocation (which would usually lead to a runtime crash).
This commit is contained in:
Timothy Flynn 2025-04-08 13:50:50 -04:00 committed by Tim Flynn
parent 917537b449
commit f070264800
Notes: github-actions[bot] 2025-04-09 00:01:12 +00:00
28 changed files with 51 additions and 51 deletions

View file

@ -3052,14 +3052,14 @@ ByteString NewArray::to_byte_string_impl(Bytecode::Executable const& executable)
ByteString NewPrimitiveArray::to_byte_string_impl(Bytecode::Executable const& executable) const
{
return ByteString::formatted("NewPrimitiveArray {}, {}"sv,
return ByteString::formatted("NewPrimitiveArray {}, {}",
format_operand("dst"sv, dst(), executable),
format_value_list("elements"sv, elements()));
}
ByteString AddPrivateName::to_byte_string_impl(Bytecode::Executable const& executable) const
{
return ByteString::formatted("AddPrivateName {}"sv, executable.identifier_table->get(m_name));
return ByteString::formatted("AddPrivateName {}", executable.identifier_table->get(m_name));
}
ByteString ArrayAppend::to_byte_string_impl(Bytecode::Executable const& executable) const