82c494a97e
Prior to this commit, when unwinding through an active finally the stack was not being correctly popped/folded, which resulting in the VM crashing for complicated unwinding of nested finallys. This should be fixed with this commit, and more tests for return/break/ continue within a finally have been added to exercise this.
18 lines
389 B
Python
18 lines
389 B
Python
def foo(x):
|
|
for i in range(x):
|
|
try:
|
|
pass
|
|
finally:
|
|
try:
|
|
try:
|
|
print(x, i)
|
|
finally:
|
|
try:
|
|
1 / 0
|
|
finally:
|
|
return 42
|
|
finally:
|
|
print('continue')
|
|
continue
|
|
print(foo(4))
|