Bob Nystrom
0ba6456214
fix: properly dispose loop-scoped variables and exit scopes on break
...
Replace the single `loopBody` index with a `Loop` struct that tracks scope depth, enabling the compiler to emit correct scope-exit code when a `break` statement is encountered inside nested blocks. Also add `WREN_DUMP_COMPILED_CODE` debug flag and new test cases for closures capturing loop variables after break, return inside loops, and nested loop scoping.
2014-01-06 16:01:04 +00:00
..
2014-01-05 20:27:12 +00:00
2014-01-05 20:27:12 +00:00
2014-01-06 16:01:04 +00:00
2014-01-05 20:27:12 +00:00
2014-01-05 20:27:12 +00:00
2014-01-05 20:27:12 +00:00
2014-01-05 20:27:12 +00:00
2014-01-05 20:27:12 +00:00
2014-01-06 16:01:04 +00:00
2014-01-05 20:27:12 +00:00
2014-01-05 20:27:12 +00:00
2014-01-05 20:27:12 +00:00
2014-01-05 20:27:12 +00:00
2014-01-05 20:27:12 +00:00
2014-01-05 20:27:12 +00:00
2014-01-05 20:27:12 +00:00
2014-01-05 20:27:12 +00:00
2014-01-05 20:27:12 +00:00
2014-01-05 20:27:12 +00:00
2014-01-05 20:27:12 +00:00
2014-01-05 20:27:12 +00:00
2014-01-05 20:27:12 +00:00
2014-01-05 20:27:12 +00:00
2014-01-06 16:01:04 +00:00
2014-01-05 20:27:12 +00:00
2014-01-05 20:27:12 +00:00
2014-01-05 20:27:12 +00:00
2014-01-05 20:27:12 +00:00
2014-01-05 20:27:12 +00:00
2014-01-05 20:27:12 +00:00
2014-01-05 20:27:12 +00:00
2014-01-05 20:27:12 +00:00
2014-01-05 20:27:12 +00:00
2014-01-05 20:27:12 +00:00
2014-01-05 20:27:12 +00:00
2014-01-05 20:27:12 +00:00