1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 13:17:35 +00:00

LibJS: Use TRY(push_execution_context()) in places where we can recover

This commit is contained in:
Linus Groh 2022-03-17 22:42:41 +00:00 committed by Andreas Kling
parent 9422ae9bb2
commit 29964dc152
3 changed files with 4 additions and 4 deletions

View file

@ -98,7 +98,7 @@ ThrowCompletionOr<Promise*> JS::SyntheticModule::evaluate(VM& vm)
module_context.lexical_environment = environment();
// 8. Push moduleContext on to the execution context stack; moduleContext is now the running execution context.
vm.push_execution_context(module_context, realm().global_object());
TRY(vm.push_execution_context(module_context, realm().global_object()));
// 9. Let result be the result of performing module.[[EvaluationSteps]](module).
auto result = m_evaluation_steps(*this);