Skip to content

Commit

Permalink
fix: this fix corrects an erroneous behavior that led to interpreter …
Browse files Browse the repository at this point in the history
…crashes when using nested generators.
  • Loading branch information
jacopodl committed Sep 6, 2024
1 parent c299385 commit a9c3e4b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions argon/vm/areval.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit a9c3e4b

Please sign in to comment.