Fix VM memory allocation optimizations by reducing what we allocate on the heap
This commit is contained in:
@@ -16,5 +16,5 @@ func Upper(args ...object.Object) object.Object {
|
||||
return newError(err.Error())
|
||||
}
|
||||
|
||||
return &object.String{Value: strings.ToUpper(args[0].(*object.String).Value)}
|
||||
return object.String{Value: strings.ToUpper(args[0].(object.String).Value)}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user