mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-01 12:07:14 +02:00
LibJS: Pass ExecutionContext to Interpreter::run_executable()
This avoids having to get it from the VM's context stack, since most callers already have it on hand.
This commit is contained in:
committed by
Andreas Kling
parent
a7d13b107e
commit
9dae1acc31
Notes:
github-actions[bot]
2025-10-29 20:21:51 +00:00
Author: https://github.com/awesomekling Commit: https://github.com/LadybirdBrowser/ladybird/commit/9dae1acc31b Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/6629
@@ -108,7 +108,7 @@ ThrowCompletionOr<GeneratorObject::IterationResult> GeneratorObject::execute(VM&
|
||||
// We should never enter `execute` again after the generator is complete.
|
||||
VERIFY(next_block.has_value());
|
||||
|
||||
auto next_result = bytecode_interpreter.run_executable(*m_generating_function->bytecode_executable(), next_block, compleion_cell);
|
||||
auto next_result = bytecode_interpreter.run_executable(vm.running_execution_context(), *m_generating_function->bytecode_executable(), next_block, compleion_cell);
|
||||
|
||||
vm.pop_execution_context();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user