Fixes to luajc bytecode generation.

This commit is contained in:
James Roseborough
2012-09-19 03:19:55 +00:00
parent 4bf132c01e
commit 0f70a8e962
10 changed files with 43 additions and 27 deletions

View File

@@ -545,5 +545,15 @@ public class FragmentsTest extends TestSuite {
" end\n" +
"end\n");
}
public void testUpvalueInDoBlock() {
runFragment( LuaValue.NONE, "do\n"+
" local x = 10\n"+
" function g()\n"+
" return x\n"+
" end\n"+
"end\n"+
"g()\n");
}
}
}