mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-21 20:15:17 +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
Notes:
sideshowbarker
2024-07-17 02:29:45 +09:00
Author: https://github.com/kalenikaliaksandr Commit: https://github.com/SerenityOS/serenity/commit/0abe2a5023 Pull-request: https://github.com/SerenityOS/serenity/pull/20496
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)
|
||||
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;
|
||||
};
|
||||
|
|
Loading…
Add table
Reference in a new issue