@@ -761,6 +761,7 @@ public static partial class LuaVirtualMachine
}
case OpCode.ForLoop:
{
+ state.CloseUpValues(thread, RA);
stack.EnsureCapacity(RA + 4);
// TODO: add error message