From c3717c26bb991b2e313d8f54ad7f769c888f064b Mon Sep 17 00:00:00 2001 From: Aapo Alasuutari Date: Sat, 7 Nov 2026 14:18:53 +0200 Subject: [PATCH] fix(ecmascript): AsyncGenerator::is_executing with Await --- .../control_abstraction_objects/async_generator_objects.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/nova_vm/src/ecmascript/builtins/control_abstraction_objects/async_generator_objects.rs b/nova_vm/src/ecmascript/builtins/control_abstraction_objects/async_generator_objects.rs index 7443a26f1..0ff276a65 100644 --- a/nova_vm/src/ecmascript/builtins/control_abstraction_objects/async_generator_objects.rs +++ b/nova_vm/src/ecmascript/builtins/control_abstraction_objects/async_generator_objects.rs @@ -409,7 +409,10 @@ impl AsyncGeneratorState<'_> { } pub(crate) fn is_executing(&self) -> bool { - matches!(self, AsyncGeneratorState::Executing(_)) + matches!( + self, + AsyncGeneratorState::Executing(_) | AsyncGeneratorState::ExecutingAwait { .. } + ) } pub(crate) fn is_suspended(&self) -> bool {