diff --git a/Userland/Libraries/LibJS/Runtime/VM.cpp b/Userland/Libraries/LibJS/Runtime/VM.cpp index b1cce1d3382b75..cac27c3b21485c 100644 --- a/Userland/Libraries/LibJS/Runtime/VM.cpp +++ b/Userland/Libraries/LibJS/Runtime/VM.cpp @@ -295,6 +295,11 @@ ThrowCompletionOr VM::named_evaluation_if_anonymous_function(ASTNode cons } } + if (auto* bytecode_interpreter = bytecode_interpreter_if_exists()) { + auto executable = TRY(Bytecode::compile(*this, expression, FunctionKind::Normal, name)); + return TRY(bytecode_interpreter->run(*current_realm(), *executable)); + } + return TRY(expression.execute(interpreter())).release_value(); }