LibCore+LibJS+LibWasm: Always use a real format string

It's generally considered a security issue to use non-format string
literals. We would likely just crash in practice, but let's avoid the
issue altogether.
This commit is contained in:
Timothy Flynn 2025-04-08 13:23:56 -04:00 committed by Tim Flynn
commit 64d290447c
Notes: github-actions[bot] 2025-04-09 00:01:33 +00:00
3 changed files with 11 additions and 11 deletions

View file

@ -154,7 +154,7 @@ ErrorOr<void> print_type(JS::PrintContext& print_context, StringView name)
ErrorOr<void> print_separator(JS::PrintContext& print_context, bool& first)
{
TRY(js_out(print_context, first ? " "sv : ", "sv));
TRY(js_out(print_context, "{}", first ? " "sv : ", "sv));
first = false;
return {};
}