final LuaValue func = args.checkfunction(1);
return new LuaThread(func, LuaThread.getGlobals() );
}
case RESUME: {
final LuaThread t = args.checkthread(1);
return t.resume( args.subargs(2) );
}
case RUNNING: {
final LuaThread r = LuaThread.getRunning();
return LuaThread.isMainThread(r)? NIL: r;
}