Skip to content

Commit

Permalink
LibJS/Bytecode: Fix formatting of operand lists in bytecode dumps
Browse files Browse the repository at this point in the history
There was an unterminated color escape sequence which caused "args"
to look like "rgs" when dumping Call instructions.
  • Loading branch information
awesomekling committed Feb 27, 2024
1 parent 83d29b3 commit 55dc696
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Userland/Libraries/LibJS/Bytecode/Interpreter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 55dc696

Please sign in to comment.