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

LibJS/Bytecode: Fix formatting of operand lists in bytecode dumps

There was an unterminated color escape sequence which caused "args"
to look like "rgs" when dumping Call instructions.
This commit is contained in:
Andreas Kling 2024-02-27 07:43:35 +01:00
parent 83d29b3e45
commit 55dc69625a

View file

@ -82,7 +82,7 @@ static ByteString format_operand_list(StringView name, ReadonlySpan<Operand> ope
{
StringBuilder builder;
if (!name.is_empty())
builder.appendff(", \033[32{}\033[0m:[", name);
builder.appendff(", \033[32m{}\033[0m:[", name);
for (size_t i = 0; i < operands.size(); ++i) {
if (i != 0)
builder.append(", "sv);