Fix a few VM issues which were causing subtle failures in the test cases.

Includes a new VM method, newCall, which must be called before pushing
a call onto the stack to make sure that base is set correctly.
A couple of weird issues remain with autoload.lua.
This commit is contained in:
Ian Farmer
2007-09-04 01:52:33 +00:00
parent 0f81c4deaf
commit 75fb975410
8 changed files with 45 additions and 6 deletions

View File

@@ -3,6 +3,7 @@ import java.io.IOException;
import java.io.InputStream;
import lua.StackState;
import lua.addon.luacompat.LuaCompat;
import lua.addon.luajava.LuaJava;
import lua.io.Closure;
import lua.io.LoadState;
@@ -20,6 +21,9 @@ public class LuaJavaAppRunner {
public static void main( String[] args ) throws IOException {
// add LuaCompat bindings
LuaCompat.install();
// add LuaJava bindings
LuaJava.install();

View File

@@ -51,7 +51,11 @@ public class LuaJTest extends TestCase {
public void testBoolean() throws IOException, InterruptedException {
runTest( "boolean" );
}
public void testCalls() throws IOException, InterruptedException {
runTest( "calls" );
}
public void testCoercions() throws IOException, InterruptedException {
runTest( "coercions" );
}