builtin-iterator.go: fixed item and index shortcuts $_ and $__
This commit is contained in:
+2
-2
@@ -93,8 +93,8 @@ func runFunc(ctx kern.ExprContext, name string, args map[string]any) (result any
|
||||
params[kern.ParamIndex] = it.Index()
|
||||
params[kern.ParamItem] = item
|
||||
|
||||
localCtx.UnsafeSetVar("_", it.Index())
|
||||
localCtx.UnsafeSetVar("__", item)
|
||||
localCtx.UnsafeSetVar("_", item)
|
||||
localCtx.UnsafeSetVar("__", it.Index())
|
||||
|
||||
abort := false
|
||||
if _, err = op.InvokeNamed(localCtx, iterParamOperator, params); err != nil {
|
||||
|
||||
Reference in New Issue
Block a user