Fix scoping and break statements.

Variables declared in the loop were not properly disposed of
when you broke out of the loop.
This commit is contained in:
Bob Nystrom
2014-01-06 08:01:04 -08:00
parent 90a769b6d1
commit 3be059a137
13 changed files with 208 additions and 62 deletions
+3
View File
@@ -46,6 +46,9 @@
// Set this to true to log garbage collections as they occur.
#define WREN_TRACE_GC false
// Set this to true to print out the compiled bytecode of each function.
#define WREN_DUMP_COMPILED_CODE false
// The maximum number of arguments that can be passed to a method. Note that
// this limtation is hardcoded in other places in the VM, in particular, the
// `CODE_CALL_XX` instructions assume a certain maximum number.