Ensure cast functions are output correctly as object keys

This commit is contained in:
Tobie Morgan Hitchcock 2022-06-01 10:50:07 +01:00
parent bea90712a3
commit 525b02ca46

View file

@ -647,7 +647,7 @@ impl Value {
Function::Future(_) => "fn::future".to_string().into(),
Function::Script(_) => "fn::script".to_string().into(),
Function::Normal(f, _) => f.to_string().into(),
_ => v.to_string().into(),
Function::Cast(_, v) => v.to_idiom(),
},
_ => self.to_string().into(),
}