Update bytecode-to-bytecode compiler to handle upvalues in numeric for loops.

This commit is contained in:
James Roseborough
2010-07-29 21:28:13 +00:00
parent cd35ad7cbd
commit dce6007569
7 changed files with 372 additions and 323 deletions

View File

@@ -37,10 +37,11 @@ public class TestLuaJC {
// create the script
public static String name = "script";
public static String script =
"for i = 1,2 do\n"+
" t[i] = function()\n"+
"for i = 1,2 do\n" +
" i = i + 5\n"+
" return (function()\n"+
" return i\n"+
" end\n"+
" end)()\n"+
"end\n";
public static void main(String[] args) throws Exception {