operator-map/filter.go: added deletion of temporary variables '_index' and '_count'
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user