mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-12-08 06:09:58 +00: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:
parent
a7d13b107e
commit
9dae1acc31
Notes:
github-actions[bot]
2025-10-29 20:21:51 +00:00
Author: https://github.com/awesomekling
Commit: 9dae1acc31
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/6629
9 changed files with 31 additions and 33 deletions
|
|
@ -743,7 +743,7 @@ ThrowCompletionOr<void> SourceTextModule::execute_module(VM& vm, GC::Ptr<Promise
|
|||
// c. Let result be the result of evaluating module.[[ECMAScriptCode]].
|
||||
Completion result;
|
||||
|
||||
auto result_and_return_register = vm.bytecode_interpreter().run_executable(*executable, {});
|
||||
auto result_and_return_register = vm.bytecode_interpreter().run_executable(*module_context, *executable, {});
|
||||
if (result_and_return_register.value.is_error()) {
|
||||
result = result_and_return_register.value.release_error();
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue