temporary
This commit is contained in:
+5
-5
@@ -77,10 +77,7 @@ func evalIterator(ctx ExprContext, self *term) (v any, err error) {
|
||||
return
|
||||
}
|
||||
|
||||
dc := &dataCursor{
|
||||
index: -1,
|
||||
ctx: ctx.Clone(),
|
||||
}
|
||||
dc := newDataCursor(ctx)
|
||||
|
||||
if initFunc, exists := ds[initName]; exists && initFunc != nil {
|
||||
var args []any
|
||||
@@ -91,9 +88,12 @@ func evalIterator(ctx ExprContext, self *term) (v any, err error) {
|
||||
} else {
|
||||
args = []any{}
|
||||
}
|
||||
if dc.resource, err = initFunc.Invoke(dc.ctx, initName, args); err != nil {
|
||||
|
||||
initCtx := dc.ctx.Clone()
|
||||
if dc.resource, err = initFunc.Invoke(initCtx, initName, args); err != nil {
|
||||
return
|
||||
}
|
||||
exportObjects(dc.ctx, initCtx)
|
||||
}
|
||||
|
||||
dc.nextFunc, _ = ds[nextName]
|
||||
|
||||
Reference in New Issue
Block a user