The only cases where the name should be set is if the function comes from a direct anonymous function expression.