Fix let-env (#3057)

This commit is contained in:
Jonathan Turner
2021-02-15 20:58:51 +13:00
committed by GitHub
parent b202951c1d
commit 48a90fea70
3 changed files with 45 additions and 39 deletions

View File

@ -186,6 +186,12 @@ impl Scope {
frame.env.extend(env_vars)
}
}
pub fn add_env_to_base(&self, env_vars: IndexMap<String, String>) {
if let Some(frame) = self.frames.lock().first_mut() {
frame.env.extend(env_vars)
}
}
}
impl ParserScope for Scope {