From a9c3e4b03cbb788b2b840030e3f92a62968a493d Mon Sep 17 00:00:00 2001 From: jacopodl Date: Fri, 6 Sep 2024 12:02:11 +0200 Subject: [PATCH] fix: this fix corrects an erroneous behavior that led to interpreter crashes when using nested generators. --- argon/vm/areval.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/argon/vm/areval.cpp b/argon/vm/areval.cpp index 52f3163b..13f37820 100644 --- a/argon/vm/areval.cpp +++ b/argon/vm/areval.cpp @@ -1629,6 +1629,8 @@ ArObject *argon::vm::Eval(Fiber *fiber) { cu_frame = fiber->frame; cu_code = cu_frame->code; + cu_frame->counter--; + ((Function *) TOP())->Unlock(fiber); Replace(cu_frame->eval_stack - 1, ret);