mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-30 04:39:06 +00:00
LibJS: Use TRY(push_execution_context()) in places where we can recover
This commit is contained in:
parent
9422ae9bb2
commit
29964dc152
Notes:
sideshowbarker
2024-07-17 17:14:26 +09:00
Author: https://github.com/linusg
Commit: 29964dc152
Pull-request: https://github.com/SerenityOS/serenity/pull/13100
3 changed files with 4 additions and 4 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue