Let stack trace be printed on runtime error in script.

This commit is contained in:
James Roseborough
2008-12-04 19:31:38 +00:00
parent c44943e3a4
commit f382aa552d

View File

@@ -160,7 +160,7 @@ public class lua {
if ( args != null )
for ( int i=offset; i<args.length; i++ )
vm.pushstring(args[i]);
vm.pcall(vm.gettop()-1, 0, 0);
vm.call(vm.gettop()-1, 0);
break;
case LuaState.LUA_ERRMEM:
System.out.println("out of memory during chunk load");