fix: thunk & function
This commit is contained in:
@@ -54,10 +54,8 @@ pub fn env<'vm>() -> Rc<Env<'vm>> {
|
||||
}
|
||||
let builtins = Value::RecAttrSet(RecAttrSet::from_inner(map.clone()));
|
||||
let thunk = Thunk {
|
||||
thunk: RefCell::new(_Thunk::Value(Box::new(builtins.clone()))),
|
||||
env: RefCell::default(),
|
||||
thunk: Rc::new(RefCell::new(_Thunk::Value(Box::new(builtins.clone())))),
|
||||
};
|
||||
thunk.capture(builtins_env);
|
||||
map.insert(Symbol::from("builtins"), Value::Thunk(thunk));
|
||||
|
||||
env.insert(Symbol::from("builtins"), builtins);
|
||||
|
||||
Reference in New Issue
Block a user