Skip to content

Commit 5fb78ae

Browse files
rcorsiawesomekling
authored andcommitted
LibJS: Correct completion_cell typo in GeneratorObject
1 parent 04238d0 commit 5fb78ae

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Libraries/LibJS/Runtime/GeneratorObject.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ ThrowCompletionOr<GeneratorObject::IterationResult> GeneratorObject::execute(VM&
101101
return {};
102102
};
103103

104-
auto compleion_cell = heap().allocate<CompletionCell>(completion);
104+
auto completion_cell = heap().allocate<CompletionCell>(completion);
105105

106106
auto& bytecode_interpreter = vm.bytecode_interpreter();
107107

@@ -110,7 +110,7 @@ ThrowCompletionOr<GeneratorObject::IterationResult> GeneratorObject::execute(VM&
110110
// We should never enter `execute` again after the generator is complete.
111111
VERIFY(next_block.has_value());
112112

113-
auto result_value = bytecode_interpreter.run_executable(vm.running_execution_context(), *m_generating_function->bytecode_executable(), next_block, compleion_cell);
113+
auto result_value = bytecode_interpreter.run_executable(vm.running_execution_context(), *m_generating_function->bytecode_executable(), next_block, completion_cell);
114114

115115
vm.pop_execution_context();
116116

0 commit comments

Comments
 (0)