Fix copying user functions (#366)
* fix copying user functions Fixes #365 * remove EncodingId Co-authored-by: Józef Sokołowski <jozef.sokolowski@gmail.com>
This commit is contained in:
parent
7b5d207914
commit
0afdfdeb2f
1 changed files with 3 additions and 4 deletions
|
@ -1579,7 +1579,6 @@ type UserFunction struct {
|
|||
ObjectImpl
|
||||
Name string
|
||||
Value CallableFunc
|
||||
EncodingID string
|
||||
}
|
||||
|
||||
// TypeName returns the name of the type.
|
||||
|
@ -1593,7 +1592,7 @@ func (o *UserFunction) String() string {
|
|||
|
||||
// Copy returns a copy of the type.
|
||||
func (o *UserFunction) Copy() Object {
|
||||
return &UserFunction{Value: o.Value}
|
||||
return &UserFunction{Value: o.Value, Name: o.Name}
|
||||
}
|
||||
|
||||
// Equals returns true if the value of the type is equal to the value of
|
||||
|
|
Loading…
Reference in a new issue