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:
parent
ea85c99a01
commit
0abe2a5023
1 changed files with 1 additions and 5 deletions
|
@ -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;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue