Control vars are now stored in the globalCtx only.

However, it is still allowed to store control var in a local context in special situation
This commit is contained in:
2024-06-07 14:39:17 +02:00
parent 115ce26ce9
commit f347b15146
7 changed files with 74 additions and 65 deletions
+1 -1
View File
@@ -108,7 +108,7 @@ func (self *ast) Eval(ctx ExprContext) (result any, err error) {
self.Finish()
if self.root != nil {
initDefaultVars(ctx)
// initDefaultVars(ctx)
if self.forest != nil {
for _, root := range self.forest {
if result, err = root.compute(ctx); err == nil {