The read the logging events section on the function docs and use it to check what you are actually doing inside your function node
https://nodered.org/docs/writing-functions#logging-events
Alternatively if you think it is a bug, as it is a contrib node follow the link from the nodes page in flows.nodered.org to the github page of the node where you can open an issue with the nodes author