Browse Source

Revert "Fix: OP_FORLOOP (close upvalues)"

This reverts commit b0038fa8d7d2eb167e936ab4510bb207f8e7371d.
AnnulusGames 1 year ago
parent
commit
2386aa2981
1 changed files with 0 additions and 1 deletions
  1. 0 1
      src/Lua/Runtime/LuaVirtualMachine.cs

+ 0 - 1
src/Lua/Runtime/LuaVirtualMachine.cs

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