LibJS: Correct completion_cell typo in GeneratorObject

This commit is contained in:
Rocco Corsi 2025-11-17 09:01:50 -05:00 committed by Andreas Kling
parent 04238d0f3f
commit 5fb78ae455

View file

@ -101,7 +101,7 @@ ThrowCompletionOr<GeneratorObject::IterationResult> GeneratorObject::execute(VM&
return {};
};
auto compleion_cell = heap().allocate<CompletionCell>(completion);
auto completion_cell = heap().allocate<CompletionCell>(completion);
auto& bytecode_interpreter = vm.bytecode_interpreter();
@ -110,7 +110,7 @@ ThrowCompletionOr<GeneratorObject::IterationResult> GeneratorObject::execute(VM&
// We should never enter `execute` again after the generator is complete.
VERIFY(next_block.has_value());
auto result_value = bytecode_interpreter.run_executable(vm.running_execution_context(), *m_generating_function->bytecode_executable(), next_block, compleion_cell);
auto result_value = bytecode_interpreter.run_executable(vm.running_execution_context(), *m_generating_function->bytecode_executable(), next_block, completion_cell);
vm.pop_execution_context();