Mark a couple bugs found to not lose track, and add a regression test.

This commit is contained in:
Sei Lisa 2016-06-28 03:47:48 +02:00
parent 980adff9c8
commit 30a07db4fb
2 changed files with 19 additions and 0 deletions

View file

@ -1652,6 +1652,8 @@ list lazy_list_set(list L, integer i, list v)
# we always do and open a new scope for it. At worst it will be
# empty. At least it is not reflected as braces in the code if
# braces are not used.
# FIXME: This causes issues with this code that should work:
# default{timer(){ jump x; while(1) @x; }}
self.PushScope()
self.breakstack.append([self.GenerateLabel(), self.scopeindex, False])