1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 06:27:45 +00:00

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) if (s_dump_ast)
script_or_module->parse_node().dump(0); script_or_module->parse_node().dump(0);
if (auto* bytecode_interpreter = g_vm->bytecode_interpreter_if_exists()) { result = interpreter.run(*script_or_module);
result = bytecode_interpreter->run(*script_or_module);
} else {
result = interpreter.run(*script_or_module);
}
return ReturnEarly::No; return ReturnEarly::No;
}; };