operator-map/filter.go: added deletion of temporary variables '_index' and '_count'

This commit is contained in:
2026-04-25 06:23:12 +02:00
parent 6e98bdd16b
commit ce7bfc5e3f
2 changed files with 4 additions and 0 deletions
+2
View File
@@ -46,6 +46,8 @@ func evalMap(ctx ExprContext, opTerm *term) (v any, err error) {
if rightValue, err = opTerm.children[1].compute(ctx); err == nil {
values.appendItem(rightValue)
}
ctx.DeleteVar("_count")
ctx.DeleteVar("_index")
ctx.DeleteVar("_")
if err != nil {
break