protected void InjectStepsChecker(int pos) { var list = new List <int>(); for (int i = 0; i < Steps.Count; i++) { var step = Steps[i]; if (string.IsNullOrWhiteSpace(RemoveTokens(step.Output.ToString())) && step.JumpToStep == (i + 1) && step.FromTaskNumber < 0) { continue; } list.Add(i); } Emitter.Output.Insert(pos, JS.Vars.ASYNC_STEP + " = " + JS.Types.System.Array.MIN + "(" + Emitter.ToJavaScript(list.ToArray()) + ", " + JS.Vars.ASYNC_STEP + ");"); }