Skip to content

Commit e10a939

Browse files
Cleanup + plans
1 parent 6a86368 commit e10a939

5 files changed

Lines changed: 529 additions & 10 deletions

File tree

SolarSharp.CLI/Program.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,9 @@ private static void Main(string[] args)
3333

3434
ReplInterpreter interpreter = new(script)
3535
{
36-
HandleDynamicExprs = true,
3736
HandleClassicExprsSyntax = true
3837
};
3938

40-
4139
while (true) InterpreterLoop(interpreter, new ShellContext(script));
4240
}
4341

SolarSharp.Interpreter/CoreLib/DebugModule.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ public static LuaValue debug(ScriptExecutionContext executionContext, CallbackAr
2424

2525
ReplInterpreter interpreter = new(script)
2626
{
27-
HandleDynamicExprs = false,
2827
HandleClassicExprsSyntax = true
2928
};
3029

SolarSharp.Interpreter/Execution/VM/Processor/Processor_InstructionLoop.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1105,7 +1105,7 @@ private int ExecIndexSetSingleIdx(Instruction i, int instructionPtr)
11051105
if (newIndexMethod == null || newIndexMethod.IsNil()) throw ScriptRuntimeException.IndexType(obj);
11061106
}
11071107

1108-
if (newIndexMethod.Type == DataType.Function || newIndexMethod.Type == DataType.ClrFunction)
1108+
if (newIndexMethod.Type is DataType.Function or DataType.ClrFunction)
11091109
{
11101110
// wtf is this, TODO: Probably remove??
11111111
m_ValueStack.Pop(); // burn extra value ?

0 commit comments

Comments
 (0)