mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-28 19:59:17 +00:00
LibJS: Convert push_execution_context() to ThrowCompletionOr
This commit is contained in:
parent
7cdca08090
commit
57de5056b6
Notes:
sideshowbarker
2024-07-18 01:09:33 +09:00
Author: https://github.com/linusg
Commit: 57de5056b6
Pull-request: https://github.com/SerenityOS/serenity/pull/10917
Reviewed-by: https://github.com/IdanHo ✅
10 changed files with 20 additions and 21 deletions
|
@ -92,7 +92,7 @@ ThrowCompletionOr<Value> GeneratorObject::next_impl(VM& vm, GlobalObject& global
|
|||
bytecode_interpreter->enter_frame(m_frame);
|
||||
|
||||
// Temporarily switch to the captured execution context
|
||||
vm.push_execution_context(m_execution_context, global_object);
|
||||
TRY(vm.push_execution_context(m_execution_context, global_object));
|
||||
|
||||
// Pretend that 'yield' returned the passed value, or threw
|
||||
if (value_to_throw.has_value()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue