Skip to content

Commit b5634c3

Browse files
authored
Fix return null when return within Foreach
1 parent 6512bc6 commit b5634c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CodingSeb.ExpressionEvaluator/ExpressionEvaluator.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1447,7 +1447,7 @@ void forAction(int index)
14471447

14481448
lastResult = ScriptEvaluate(subScript, ref isReturn, ref isBreak, ref isContinue);
14491449

1450-
if (isBreak)
1450+
if (isBreak || isReturn)
14511451
{
14521452
isBreak = false;
14531453
break;

0 commit comments

Comments
 (0)