pub fn convert_function(params: &Value, spec: &Value) -> ValueExpand description
Convert a legacy function object to the equivalent modern expression.
params is the function object; spec is the property’s style-spec entry
(pass &Value::Null when unavailable). The result is a modern expression as
raw JSON, ready for parse.