The documentation of some JavaScript APIs shows the following snippets as an example of how to invoke some function:
I am guessing that the parameter list for foo.DoIt() is generated by code, and one the values was empty.