Meta: Remove usage of bytecode_interpreter_if_exists() in js_repl

There is no need to check if bytecode interpreter exists after we
switched away from AST interpreter.
This commit is contained in:
Aliaksandr Kalenik 2023-08-11 17:22:01 +02:00 committed by Andreas Kling
parent ea85c99a01
commit 0abe2a5023

View file

@ -117,11 +117,7 @@ static ErrorOr<bool> parse_and_run(JS::Interpreter& interpreter, StringView sour
if (s_dump_ast)
script_or_module->parse_node().dump(0);
if (auto* bytecode_interpreter = g_vm->bytecode_interpreter_if_exists()) {
result = bytecode_interpreter->run(*script_or_module);
} else {
result = interpreter.run(*script_or_module);
}
result = interpreter.run(*script_or_module);
return ReturnEarly::No;
};