The documentation of some JavaScript APIs shows the following snippets as an example of how to invoke some function:
Perhaps it's a typo, and the whole thing is expected to be in quotes.
I am guessing that the parameter list for foo.DoIt() is generated by code, and one the values was empty.