diff --git a/Userland/Libraries/LibJS/Bytecode/Interpreter.cpp b/Userland/Libraries/LibJS/Bytecode/Interpreter.cpp index b53d4954918..676b520a2c2 100644 --- a/Userland/Libraries/LibJS/Bytecode/Interpreter.cpp +++ b/Userland/Libraries/LibJS/Bytecode/Interpreter.cpp @@ -630,37 +630,19 @@ FLATTEN_ON_CLANG void Interpreter::run_bytecode(size_t entry_point) handle_Await: { auto& instruction = *reinterpret_cast(&bytecode[program_counter]); - auto result = instruction.execute_impl(*this); - - if (result.is_error()) { - if (handle_exception(program_counter, *result.throw_completion().value()) == HandleExceptionResponse::ExitFromExecutable) - return; - goto start; - } + (void)instruction.execute_impl(*this); goto may_return; } handle_Return: { auto& instruction = *reinterpret_cast(&bytecode[program_counter]); - auto result = instruction.execute_impl(*this); - - if (result.is_error()) { - if (handle_exception(program_counter, *result.throw_completion().value()) == HandleExceptionResponse::ExitFromExecutable) - return; - goto start; - } + (void)instruction.execute_impl(*this); goto may_return; } handle_Yield: { auto& instruction = *reinterpret_cast(&bytecode[program_counter]); - auto result = instruction.execute_impl(*this); - - if (result.is_error()) { - if (handle_exception(program_counter, *result.throw_completion().value()) == HandleExceptionResponse::ExitFromExecutable) - return; - goto start; - } + (void)instruction.execute_impl(*this); goto may_return; }