Skip to content

Commit 4a87bf9

Browse files
committed
refactor(evaluate): return last evaluated value in translateControlFlow
1 parent e8f48d7 commit 4a87bf9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/evaluate.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ function translateControlFlow(expressions: CompiledExpression[], variableCount:
138138

139139
translateRange(0, expressions.length);
140140

141-
lines.push("return $values[$values.length - 1];");
141+
lines.push("return $lastValue;");
142142
return lines.join("\n");
143143
}
144144

0 commit comments

Comments
 (0)