diff --git a/src/ScriptEngine/Machine/MachineInstance.cs b/src/ScriptEngine/Machine/MachineInstance.cs index f65e8df40..1f7b21496 100644 --- a/src/ScriptEngine/Machine/MachineInstance.cs +++ b/src/ScriptEngine/Machine/MachineInstance.cs @@ -1366,7 +1366,8 @@ private void Execute(int arg) ThisScope = localScope, Scopes = scopes, Locals = new IVariable[method.LocalVariables.Length], - InstructionPointer = 0 + InstructionPointer = 0, + IsReentrantCall = true }; var locals = frame.Locals; for (int i = 0; i < locals.Length; i++)