From b609fc6d516f0215a2df92f17c6137afde513c72 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Sat, 5 Jun 2021 15:52:49 +0200 Subject: [PATCH] js: Exit the program after dumping and/or running bytecode Otherwise we'd run the same program again in the AST interpreter. --- Userland/Utilities/js.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Userland/Utilities/js.cpp b/Userland/Utilities/js.cpp index 9cdb691eb2..d4d4c091eb 100644 --- a/Userland/Utilities/js.cpp +++ b/Userland/Utilities/js.cpp @@ -505,6 +505,8 @@ static bool parse_and_run(JS::Interpreter& interpreter, const StringView& source JS::Bytecode::Interpreter bytecode_interpreter(interpreter.global_object()); bytecode_interpreter.run(*block); } + + return true; } if (parser.has_errors()) {