Fix restoration of loop target in try statement #323

Merged
sb10q merged 1 commits from issue-301 into master 2023-09-29 06:51:50 +08:00

1 Commits (master)

Author SHA1 Message Date
David Mak 48c6498d1f core: Fix restoration of loop target in try statement
old_loop_target is only assigned if ctx.loop_target is overwritten,
meaning that if ctx.loop_target is never overwritten, ctx.loop_target
will always be overwritten to None.

We fix this by only restoring from old_loop_target if we previously
assigned to old_loop_target.
2023-09-28 20:00:02 +08:00