context.go: setVar() renamed as UnsafeSetVar()

This commit is contained in:
2024-05-19 01:27:44 +02:00
parent 9bd4a0ba23
commit 4d43ab2c2f
7 changed files with 11 additions and 11 deletions
+2 -2
View File
@@ -87,10 +87,10 @@ func (functor *funcDefFunctor) Invoke(ctx ExprContext, name string, args []any)
if functor, ok := arg.(Functor); ok {
ctx.RegisterFunc(p, functor, 0, -1)
} else {
ctx.setVar(p, arg)
ctx.UnsafeSetVar(p, arg)
}
} else {
ctx.setVar(p, nil)
ctx.UnsafeSetVar(p, nil)
}
}
result, err = functor.expr.eval(ctx, false)