Keywords 'break' & 'continue' tested

There were a couple bugs - I'm glad I'm so thorough with these tests.

See #152
This commit is contained in:
2024-12-30 16:56:57 +11:00
parent b84a70cc34
commit 23eb3e45df
4 changed files with 182 additions and 29 deletions

View File

@@ -581,6 +581,7 @@ static void processEscape(Toy_VM* vm) {
while (diff > 0 && vm->scope != NULL) {
vm->scope = Toy_popScope(vm->scope);
diff--;
}
}