forked from M-Labs/nac3
1
0
Fork 0
nac3/nac3standalone/demo/src
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
..
bool_literal_condition.py core: Use i8 for boolean variable allocation 2023-09-25 15:42:07 +08:00
classes.py nac3standalone: reorganize demos, compare against cpython 2022-01-23 10:35:06 +08:00
default_param.py nac3standalone: add test for default param 2022-03-30 04:05:47 +08:00
demo_test.py standalone: Update demos 2023-09-28 19:58:53 +08:00
inheritance.py nac3standalone: add more tests 2022-06-01 17:58:16 +08:00
len.py nac3standalone: add tests for list slice and len 2022-01-26 03:58:27 +08:00
list_slice_issue315.py core: Use i8 for boolean variable allocation 2023-09-25 15:42:07 +08:00
lists.py nac3standalone: fix broken test 2022-04-05 18:21:46 +08:00
loop.py standalone: Adapt loop example to output loop variable 2023-09-06 18:56:45 +08:00
loop_decr.py core: Preserve value of variable shadowed by for loop 2023-09-06 20:09:36 +08:00
loop_iterable.py core: Use C-style for loop logic for iterables 2023-09-06 20:09:38 +08:00
loop_mutate_var.py core: Preserve value of variable shadowed by for loop 2023-09-06 20:09:36 +08:00
loop_try_break.py core: Fix restoration of loop target in try statement 2023-09-28 20:00:02 +08:00
mandelbrot.py nac3standalone: reorganize demos, compare against cpython 2022-01-23 10:35:06 +08:00
min_max_abs.py nac3standalone: add test for abs function 2022-03-08 23:26:01 +08:00
operators.py nac3standalone: add tests for operators 2022-04-18 15:31:56 +08:00
option.py Option type support (#224) 2022-03-26 15:09:15 +08:00
pow.py nac3standalone: add tests for power 2022-04-04 22:10:56 +08:00
recursive_type.py nac3standalone: add more tests 2022-06-01 17:58:16 +08:00
tuple.py nac3standalone: add tests for tuple 2022-03-27 10:31:20 +08:00
typevar.py nac3standalone: add more tests 2022-06-01 17:58:16 +08:00