From 55dc69625af12f6f45326c73700d5df72678d547 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Tue, 27 Feb 2024 07:43:35 +0100 Subject: [PATCH] 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. --- Userland/Libraries/LibJS/Bytecode/Interpreter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Userland/Libraries/LibJS/Bytecode/Interpreter.cpp b/Userland/Libraries/LibJS/Bytecode/Interpreter.cpp index e59c3e7d1f67f9..9a70c858b0aed1 100644 --- a/Userland/Libraries/LibJS/Bytecode/Interpreter.cpp +++ b/Userland/Libraries/LibJS/Bytecode/Interpreter.cpp @@ -82,7 +82,7 @@ static ByteString format_operand_list(StringView name, ReadonlySpan 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);