New test file for specific code section or data type

This commit is contained in:
2024-06-01 16:31:50 +02:00
parent f41ea96d17
commit f66cd1fdb1
19 changed files with 488 additions and 214 deletions
+3 -2
View File
@@ -127,8 +127,9 @@ func (self *ast) eval(ctx ExprContext, preset bool) (result any, err error) {
}
}
if err == nil {
result, err = self.root.compute(ctx)
ctx.UnsafeSetVar(ControlLastResult, result)
if result, err = self.root.compute(ctx); err == nil {
ctx.UnsafeSetVar(ControlLastResult, result)
}
}
// } else {
// err = errors.New("empty expression")