From de6d03227321c7f7f926d8a4e5898b29b5178e40 Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Thu, 10 Jun 2021 21:04:32 +0200 Subject: [PATCH] LibJS: Show the VM's last value after executing bytecode programs --- Userland/Utilities/js.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Userland/Utilities/js.cpp b/Userland/Utilities/js.cpp index 1566e06287e..181e4a476df 100644 --- a/Userland/Utilities/js.cpp +++ b/Userland/Utilities/js.cpp @@ -533,9 +533,9 @@ static bool parse_and_run(JS::Interpreter& interpreter, const StringView& source if (s_run_bytecode) { JS::Bytecode::Interpreter bytecode_interpreter(interpreter.global_object()); bytecode_interpreter.run(unit); + } else { + return true; } - - return true; } else { interpreter.run(interpreter.global_object(), *program); }