Parameterless function in JScript

There seems to be a problem when calling a parameterless function that resides in a different unit

To depict this problem I have created to simple JScript scripts. Unit A has a function that shows a dialog and returns a string. Unit B has a function that calls the function in Unit A

This is the value returned by the call_unit_a() is this:

Since I have tested that only parameterless functions have this poblem I thought on passing a parameter, I have used “undefined”

This time the dialog is displayed and the result is “done” as expected

But passing the “undefined” parameter is maybe a hack. So, it may be an issue

source.zip (304 Bytes)