修复goto跳转时缓存分支缺少设置跳转点的错误

This commit is contained in:
2025-11-28 15:24:05 +08:00
parent 29dd4f5d96
commit 90277406e8
2 changed files with 8 additions and 0 deletions

View File

@@ -17,6 +17,7 @@ namespace Convention.RScript.Runner
{
depth = jumpResult.Item1;
lastLayer = jumpResult.Item2;
context.CurrentRuntimePointer = target;
}
else
{

View File

@@ -266,9 +266,16 @@ namespace Convention.RScript
public int StepCount { get; private set; }
#if DEBUG
public List<RScriptSentence> StepStack = new();
#endif
internal object RunNextStep(ExpressionParser parser)
{
StepCount++;
#if DEBUG
StepStack.Add(CurrentSentence);
#endif
var sentence = CurrentSentence;
try
{