Initialize globals when compiling.

This commit is contained in:
James Roseborough
2010-07-30 21:53:15 +00:00
parent 51e64c87cb
commit 839125fb7f

View File

@@ -31,6 +31,7 @@ import org.luaj.vm2.Print;
import org.luaj.vm2.Prototype;
import org.luaj.vm2.compiler.DumpState;
import org.luaj.vm2.compiler.LuaC;
import org.luaj.vm2.lib.jse.JsePlatform;
/**
@@ -128,6 +129,7 @@ public class luac {
// process input files
try {
JsePlatform.standardGlobals();
processing = true;
for ( int i=0; i<args.length; i++ ) {
if ( ! processing || ! args[i].startsWith("-") ) {