fix: builtins impl

This commit is contained in:
2025-05-19 08:37:40 +08:00
parent 4124156d52
commit e17c48f2d9
4 changed files with 42 additions and 18 deletions

View File

@@ -44,8 +44,8 @@ impl<'jit, 'vm> Env<'jit, 'vm> {
.map(|(&k, v)| {
(
k,
if let Value::Builtins = v {
Value::AttrSet(new.clone())
if let Value::Builtins(weak) = v {
Value::AttrSet(weak.upgrade().unwrap())
} else {
v.clone()
},