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
@@ -52,6 +52,8 @@ func evalFilter(ctx ExprContext, opTerm *term) (v any, err error) {
err = fmt.Errorf("filter expression must return a boolean or a castable to boolean, got %v [%T]", rightValue, rightValue)
}
}
ctx.DeleteVar("_count")
ctx.DeleteVar("_index")
ctx.DeleteVar("_")
if err != nil {
break