New autoload and math test cases. Currently autoload does not work because
the GETGLOBAL instruction does not handle the case where a metatable method is invoked.
This commit is contained in:
@@ -26,6 +26,10 @@ public class GlobalState {
|
||||
private static LTable _G;
|
||||
|
||||
static {
|
||||
resetGlobals();
|
||||
}
|
||||
|
||||
static void resetGlobals() {
|
||||
_G = new LTable();
|
||||
_G .put( "_G", _G );
|
||||
Builtin.addBuiltins( _G );
|
||||
|
||||
Reference in New Issue
Block a user