@@ -21,33 +21,33 @@ var (
2121type FunctionsTable map [string ]* builtin.Function
2222
2323type Config struct {
24- EnvObject any
25- Env nature.Nature
26- Expect reflect.Kind
27- ExpectAny bool
28- Optimize bool
29- Strict bool
30- Profile bool
31- MaxNodes uint
32- ConstFns map [ string ]reflect. Value
33- Visitors []ast. Visitor
34- Functions FunctionsTable
35- Builtins FunctionsTable
36- Disabled map [ string ] bool // disabled builtins
37- NtCache nature. Cache
38- DisableSC bool
24+ EnvObject any
25+ Env nature.Nature
26+ Expect reflect.Kind
27+ ExpectAny bool
28+ Optimize bool
29+ Strict bool
30+ ShortCircuit bool
31+ Profile bool
32+ MaxNodes uint
33+ ConstFns map [ string ]reflect. Value
34+ Visitors []ast. Visitor
35+ Functions FunctionsTable
36+ Builtins FunctionsTable
37+ Disabled map [ string ] bool // disabled builtins
38+ NtCache nature. Cache
3939}
4040
4141// CreateNew creates new config with default values.
4242func CreateNew () * Config {
4343 c := & Config {
44- Optimize : true ,
45- MaxNodes : DefaultMaxNodes ,
46- ConstFns : make ( map [ string ]reflect. Value ) ,
47- Functions : make (map [string ]* builtin. Function ),
48- Builtins : make (map [string ]* builtin.Function ),
49- Disabled : make (map [string ]bool ),
50- DisableSC : false ,
44+ Optimize : true ,
45+ ShortCircuit : true ,
46+ MaxNodes : DefaultMaxNodes ,
47+ ConstFns : make (map [string ]reflect. Value ),
48+ Functions : make (map [string ]* builtin.Function ),
49+ Builtins : make (map [string ]* builtin. Function ),
50+ Disabled : make ( map [ string ] bool ) ,
5151 }
5252 for _ , f := range builtin .Builtins {
5353 c .Builtins [f .Name ] = f
0 commit comments