Fix thread constructor so upvalues setfenv work correctly

This commit is contained in:
James Roseborough
2007-11-16 18:13:40 +00:00
parent eef469c715
commit ecacbfde92

View File

@@ -48,7 +48,7 @@ public class LThread extends LValue implements Runnable {
public LThread(LClosure c) { public LThread(LClosure c) {
threadVm = new LuaState(c.env); threadVm = new LuaState(c.env);
threadVm.pushlvalue(new LClosure(c.p, threadVm._G)); threadVm.pushlvalue(c);
} }
public int luaGetType() { public int luaGetType() {