cl-interpret: Upvars 2.0

- Only captures locals
This commit is contained in:
2025-01-28 06:13:38 -06:00
parent 0eef6b910c
commit fd361f2bea
3 changed files with 15 additions and 3 deletions

View File

@@ -34,7 +34,7 @@ impl Function {
pub fn upvars(&self) -> Ref<Upvars> {
self.upvars.borrow()
}
pub fn lift_upvars(&self, env: &mut Environment) {
pub fn lift_upvars(&self, env: &Environment) {
let upvars = collect_upvars(&self.decl, env);
if let Ok(mut self_upvars) = self.upvars.try_borrow_mut() {
*self_upvars = upvars;