@@ -147,7 +147,7 @@ public class FunctionCompilationContext : IDisposable
case OpCode.LoadNil when lastInstruction.B == 0:
case OpCode.GetUpVal:
case OpCode.GetTabUp:
- case OpCode.GetTable:
+ case OpCode.GetTable when !activeLocals[lastInstruction.B]:
case OpCode.SetTabUp:
case OpCode.SetUpVal:
case OpCode.SetTable: