Remove auto-use'ing.

This commit is contained in:
Qi Xiao 2016-10-10 00:55:52 +08:00
parent ea08e1d891
commit a356967a32

View File

@ -363,8 +363,11 @@ func (ec *EvalCtx) ResolveVar(ns, name string) Variable {
}
return sharedVariable{ec.Store, name}
default:
use(ec, ns, nil)
return ec.Modules[ns][name]
if ns, ok := ec.Modules[ns]; ok {
return ns[name]
} else {
return nil
}
}
}