mirror of
https://github.com/go-sylixos/elvish.git
synced 2024-12-04 10:57:50 +08:00
Temporarily fix the builtin namespace.
This commit is contained in:
parent
cffc728530
commit
3a237c3a4f
|
@ -72,7 +72,13 @@ func NewEvaler(st *store.Store) *Evaler {
|
|||
builtin[FnPrefix+b.Name] = NewRoVariable(b)
|
||||
}
|
||||
|
||||
return &Evaler{builtin, Namespace{}, map[string]Namespace{}, st, nil, nil}
|
||||
// XXX Temporary fix for compiler not knowing builtin namespace.
|
||||
global := Namespace{}
|
||||
for k, v := range builtin {
|
||||
global[k] = v
|
||||
}
|
||||
|
||||
return &Evaler{builtin, global, map[string]Namespace{}, st, nil, nil}
|
||||
}
|
||||
|
||||
func (e *Evaler) searchPaths() []string {
|
||||
|
|
Loading…
Reference in New Issue
Block a user